- This topic has 11 replies, 3 voices, and was last updated 9 years ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Error with Dropdown field in search form UI
Hi Matthieu
So I took a look. Trevor is right.
Your theme appears to be “hijacking” all <select> in your site, changing the markup and DOM structure.
For example our script will create a regular dropdown select:
<select>
<option>Option 1</option>
<option>Option 2</option>
</select>
You theme then grabs this, and changes it to:
<div class="pseudo-select">
<input type="text" value="" id="" name="_sft_options[]">
<span class="pseudo-select-field">Options</span>
<ul class="pseudo-select-dropdown">
<li class="pseudo-select-dropdown-item selected">Option 1</li>
<li class="pseudo-select-dropdown-item">Option 2</li>
</ul>
</div>
Take a look, there isn’t even a select in there, which means its going to be impossible to get the value of it!
What you need to do is find a way to disable this, I would contact your theme author and ask if its possible to disable this.
To be honest, I would assume there would be a way to do this – to change the markup of every single select on a site, with no way to disable will have untold repercussions, and I suspect plenty of compatibility problems with plugins etc (or even developers who want to add an actual select dropdown anywhere in their site).
Hope that helps, let me know how you get on.
Best