How to select first item from the dropdown using jQuery

Sheonarayan
Posted by Sheonarayan under jQuery category on | Points: 40 | Views : 1548
To auto select first item on the page load in jQuery, we can write below code

$("#LocationId").val($("#LocationId option:first").next().val());

Thanks

Comments or Responses

Login to post response