I’m using UI Selectmenu in my project
UI selectmenu has a select option to set select behavior for all selectmenu options like :
$('.anything').
selectmenu({
select : function(event, options) {
spec_function('2')
}
});
How can I set a specific select behavior for each option or a specific option not all ?
Use switch-case statement and as SurjithSM says, send the ID of what option you’re selecting. As such: