Answers for "get text option selected javascript"

4

get selected text js

// Get highlighted text this way:

window.getSelection().toString()
Posted by: Guest on April-08-2020
0

get text of selected option js

var sel = document.getElementById("box1");
var text= sel.options[sel.selectedIndex].text;
Posted by: Guest on June-22-2021

Code answers related to "get text option selected javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language