How do I get the text value of a selected option?

bruce
bruce
Member
40 Points
10 Posts

How do I get the text value of a selected option in jquery?

Views: 8768
Total Answered: 1
Total Marked As Answer: 0
Posted On: 07-Oct-2015 02:53

Share:   fb twitter linkedin
Answers
Rahul Maurya
Rahul M...
Teacher
4822 Points
23 Posts
         

Use following jquery for text:

$("#selectid selected:option").text();

and for value use this:

$("#selectid selected:option").val();
Posted On: 11-Oct-2015 00:36
 Log In to Chat