html option selected text jquery

 

 

 

 

get selected option text using jQueryvar index 3 (selectBox > option).eq(index).attr(selected, selected). Note: The Above code selects the html selectbox having the id attribute as selectBox. Web Development jQuery HTML JavaScript.Set the selected option in the select element to "option two" (.You can set the text node contents of a