1

How do I get the text of an item in Listbox by passing the value of that item. I don't need the selected item, only the one I specified by value.

I use jQuery.

0

1 Answer 1

1

HTML Code:

<select>
    <option value="1">ayush</option>
</select>


jQuery Code:

var a = $('option[value="1"]').html();
console.log(a);
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.