Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Selecting drop down box value programmatically

$
0
0

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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>