Changing the selected value of a drop-down list using Javascript.

Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 249
We can easily set,refer below code:-
ddl = document.getElementById("ID of dropdown list control goes here");
ddl.value = 4;

Here,4 is the value we want to set.

Comments or Responses

Login to post response