Removing all the options from a Dropdownlist and adding a new option and selecting it with jQuery.

vishalneeraj-24503
Posted by vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 1310
Write below jQuery code:-
$('#ddl_employee')
.find('option')
.remove()
.end()
.append('<option value="Dotnet Funda.Com">text</option>')
.val('ITFunda.Com');

Comments or Responses

Login to post response