2012-06-23 151 views
-2

HTML代码选择下拉菜单项[WEBBROWSER]

<label class="hideContent" for="select_price_category">Select a price category</label> 
<select id="price_category" style="margin-left:20px;" name="price_category"> 
<option price="1500" value="1">£300</option> 
<option price="995" value="2">£200</option> 
<option price="655" value="3">£300</option> 
</select> 

你怎么做到这一点

+0

你究竟想要完成什么? (并且'for =“select_price_category”'应该是'for =“price_category”'。) – 0b10011

+0

@bfrohs只是一个自动化的东西,用于选择教育用下拉框(就像点击它)。我已经看到有人这样做为一个,但不知道如何做这个Dim元素作为HtmlElement = WebBrowser1.Document.GetElementById(“BirthMonth”) 昏暗的月份为HtmlElement = element.GetElementsByTagName(“选项”)。Cast(Of HtmlElement).FirstAttribute(“selected”,“true”) End Sub – Bigcake

+0

@bfrohs please你能帮忙吗 – Bigcake

回答