jquery-tutorialsmade

How to get the text of a select option selected text!

This tutorial shows you how to get the selected text of a selectbox with the help of jQuery. We all know jQuery easing our work in many ways, if use old JavaScript method to get the Selected text, you should loop through all <option> one by one. But in jQuery this is pretty easy.

All you have to do is only this:

Yes, this one line script will get you the selected text.

Here is the demo script, which shows you how to get the selected text onChange event of the select box:

I hope this helped you today! Keep reading!

 

 

Related Posts

Leave a Reply