Get label of option in SelectBox using jQuery
jQuery-Ajax is getting popular day by day for updating the data of database in very effective manner. If you works with SelectBox and want to update the value of SelectBox in database without submitting the form/page load. You may done this task by calling jQuery-Ajax on onChange event of SelectBox. Once the value is getting updated in database, you may hide the selectbox and show the label of value at somewhere.
For getting the label value of option, you will get it by writing a single jQuery statement.
var label = $('#select_id :selected').text();
Above code will find the selected option, take the label of that option and return the value in label variable.