Keydose
New Member
- Sep 11, 2013
- 28
- 2
I am trying to modify the value of a drop down list on EE's Free Sim page.
Website Code:
I have got to the point of WebBrowser1.Document.GetElementById("ddlSims").SetAttribute("value", "2") but obviously this doesn't work, as I need to set the option value to 2, any idea how to do this?
Website Code:
Code:
<p class="form-writing">
<label for="ddlSims">*Number of SIMs</label>
<select name="ddlSims" id="ddlSims" class="form-layout-select" style="width: 100px;display: block;">
<option value="1">1</option>
<option value="2">2</option>
</select>
</p>
I have got to the point of WebBrowser1.Document.GetElementById("ddlSims").SetAttribute("value", "2") but obviously this doesn't work, as I need to set the option value to 2, any idea how to do this?