Open irshad-k opened 10 years ago
I had the same prob You need to declare each one on it's own and add the onchange callback to the one you want the alert.
for eg //want call back $('#Vehicle').minimalect({ onchange: function (value, text) { alert(value); //alert(text); } });
//The rest $('#BikeSelect').minimalect(); $('#CarSelect').minimalect(); $('#TruckSelect').minimalect(); $('#Location').minimalect();
Hello If I declare minimalect like :
$("#p_orderby, #ipp").minimalect({ onchange: function(value, text) { .... } });
how can I get the id or the name of the element that fired ? Thanks
Firstly I would like to make all selects 'minimalect' at once (global.js) $("select").minimalect();
Then Individually add events in the corresponding html/jsp pages $("#caseSelect").minimalect({ onchange:function(v,t){ alert(t); } }); This does not fire onchange event!