7 February 2011 0 Comments

[jQuery] Get Option text of Selectbox using jQuery

In my previous post, i mentions how to get option text using javascript. If you are using jQuery than this is more easy than taking option text (selected text) using javascript. Look at below code to get selected text of dropdown using jQuery.

$(“#category option:selected”).text();

    Freelance PHP Developer