Jquery jquery.sumoselect

1.4k Views Asked by At

Im trying to use a plugin called jquery.sumoselect from https://github.com/HemantNegi/jquery.sumoselect the thing is everything is well documented but the thing i realy want to know is how do i get the selected values of it missing in documentation or i keep reading over and over it ? does someone knows where or how to do it ? I needed it for a asp.net usercontrol im making of it so. very handy to know how i get the selected values.

1

There are 1 best solutions below

1
On BEST ANSWER

You simply read the values from the input that SumoSelect is operating on. So if you apply it like this $('.testselect1').SumoSelect(); then simply run $('.testselect1').val(); to get the selected value. You can access the SumoSelect demo page and open the browser console and run $('.testselect1').val(); to see.

This is somewhat expected for a jQuery plugin -- see jQuery .val().