Quantcast
Viewing all articles
Browse latest Browse all 12583

Selecting drop down box value programmatically

Hi

I am using a html element to get a drop down element , I want to select a particular value programmatically, how can I do that?

document.getElementById("DrpDwn").setAttribute("value","some value");

the above code is not working , please suggest changes

Viewing all articles
Browse latest Browse all 12583

Trending Articles