setattribute to web form drop down list

  • Thread starter Thread starter migueloritz
  • Start date Start date
M

migueloritz

Guest
I am trying to assign a value to a web form drop down list using: WebBrowser1.Document.GetElementById("canton").SetAttribute("selectedindex", 1) but, there is no Select option in the HTML.

Here is the HTML code:

</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="canton">Cant&#243;n *</label>
<div class="col-md-8">
<select class="form-control" id="canton" name="canton"></select>
</div>

Can somebody please help?

Continue reading...
 
Back
Top