logo-MindMajix
PostjQueryjQuery
k
kavya A

Posted on 25th July 2024|189 views

0
votes

Jquery Set Selected Option By Text

How can we set the selected option of dropdown in jQuery using ID?

1 answers
Answers
P
jordan chris

Posted on 25th July 2024| views

We can utilize the prop method. We can recover the element value utilizing the ID also apply the value as the jQuery val(). Work by using the following syntax, $('select option:selected').

Improve your knowledge in Jquery from scratch using Jquery Online Course.

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number