Use :selected pseudo selector on the selected options and then use the .val function to get the value of the option. ... Side note: Using filter ... ... <看更多>
Search
Search
Use :selected pseudo selector on the selected options and then use the .val function to get the value of the option. ... Side note: Using filter ... ... <看更多>
You can simply get it with the select name attribute $('select[name=general[slider_location]]').val();. Note: general → is the fieldset name, ... ... <看更多>
Get Value or Text from Select2. ... venblee/Select 2 Val or Text ... //var theSelection = $(test).filter(':selected').text(); // doesn't work. ... <看更多>