Answers for "get text of option in select"

12

get text of selected option jquery

$('#id').children(':selected').text();
Posted by: Guest on March-18-2020
0

get selected text

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

Code answers related to "get text of option in select"

Code answers related to "Javascript"

Browse Popular Code Answers by Language