Code Drop down categorie
<div class="row">
<?php osc_categories_select('sCategory', $category, __('Select a category', 'spain')) ; ?>
</div>
So How we can call this function when the selection is change
this code call the attribu when we click Search (Submit bouton)
i need to call this function when the selection change
<?php
if(osc_search_category_id()) {
osc_run_hook('search_form', osc_search_category_id()) ;
} else {
osc_run_hook('search_form') ;
}
?> </div>
Why we have to do this
when i select category the attribut don't change only when i click applay (SubmiT bouton)
Exemple i isearch fo a car and i have the attribut to choose make, model,....
if i change the select to exemple dating, i still have the attribut for car, i have allaways to click applay for the attribut change
in the item-post.php it's good we just select and the attribut change
I want the same function for the search.php