Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

Webbrowser Control - Select Dropdownlists option

$
0
0
Im filling in a site with Webbrowser control, the problem is the site contains two dropdownlists and they are linked to each other like
HTML Code:

<select name="dropdown1" id="dropdown1">
<option value="1"test1</option>
<option value="2"test2</option>
</select>
<select....>
<option value="">&nbsp;</option>
</select>

If i use

Code:

Webbrowser1.document.getelementbyid("dropdown1").setattribute("Value", "1")
it does select the value 1 of dropdownlist1 but it doesnt activate dropdownlist 2 with options that belong to the choice on the first dropdownlist
The only way i get it working is to select it with the mouse and click on my option but i want it to be automatic. I hope i have informed you well enough.

Viewing all articles
Browse latest Browse all 42220

Trending Articles



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