const mySelect = $('#my-select'); const value = mySelect.val(); const description = mySelect.find(':selected').text(); console('The user selected value=' + value + ' with description ' + description);
Programming Tips - jQuery: HTML select get the value and the description of the value
Date: 2024may8
Language: javaScript
Q. jQuery: HTML <select> get the value and the description of the value
A.