Answers for "how to get selected option text"

7

jquery selected option text

$("#mySelect option:selected").html();
Posted by: Guest on April-25-2020
0

get selected text

const getSelectedText = () => window.getSelection().toString();
Posted by: Guest on October-04-2021

Code answers related to "how to get selected option text"

Code answers related to "Javascript"

Browse Popular Code Answers by Language