Learn how to get the text of a select option using jQuery

This post teaches you how to get the text of a select option not the value actually!!

Its pretty simple in jQuery, Look at the below syntax:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$('#yourselectboxid :selected').text()
$('#yourselectboxid :selected').text()
$('#yourselectboxid :selected').text()

the above one line of code will give you the selected …