I am trying to: create advanced search button like hire, to expand some search criteria.
I visited this URL: hidden link
I expected to see: like on that site to work, ajax update results instantly
Instead, I got: like on hidden link second search engine from the top, use code like that
[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="box">
Unesite ime firme ili delatnost:<br />
[wpv-filter-search-box class="pretraga1"] [wpv-filter-submit name="Pretraži" type="input"]
<br /><br />
[wpml-string context="wpv-views"][/wpml-string] [wpv-control taxonomy="category" url_param="wpv-category" type="select" default_label="Sve kategotije"]
</div>
<br />
<div class="advanced-option">Dodatne opcije</div>
<div class="sakriveni" style="display:none;">
<div class="box1">
<div class="pretraga1">
[wpml-string context="wpv-views"]Predgrađa:[/wpml-string] [wpv-control taxonomy="predgrade" url_param="wpv-predgrade" type="checkboxes" format="%%NAME%% %%COUNT%%"]
</div>
<div class="pretraga1">
[wpml-string context="wpv-views"]Delovi Grada:[/wpml-string] [wpv-control taxonomy="deo-grada" url_param="wpv-deo-grada" type="checkboxes" format="%%NAME%% %%COUNT%%"]
</div>
<div class="pretraga1">
[wpml-string context="wpv-views"]Poznate lokacije:[/wpml-string] [wpv-control taxonomy="poznata-lokacija" url_param="wpv-poznata-lokacija" type="checkboxes" format="%%NAME%% %%COUNT%%"]</div>
</div>
</div>
[/wpv-filter-controls]
[wpv-filter-end]
anh JS like that
jQuery(document).ready(function(){
jQuery(".advanced-option").click(function(){
jQuery(".sakriveni").toggle();
});
});
every time I select different option from "Dodatne opcije" it coses it selfe and can't click again on search page
when I go directly to the search page hidden link, it's not working proper.
I have managed to achieve almost all of that