I have a drop down list:
<select size="1" name="filter"id="priority_filter" onchange="filter_user_trainings();"> <option value="all">All</option> <option value="optional">Optional</option> <option value="mandatory">Mandatory</option> <option value="essential">Essential</option> <option value="custom">Custom</option> </select>
In a function I call it:
if(db==0 || db==1 ||db==2) { $("#priority_filter").val('custom'); }
I want to run the select onchange function when jQuery toggles a value. How can i do this? The code above does not work.
csaron92
source share