1

我有一个隐藏的 webview 加载一个 html 登录表单,其中包含一个下拉菜单,用户可以从中指定它的类型。我设置了一个分段控件,并希望它从 html 下拉菜单中进行选择,但无法使其正常工作。相关代码如下所示:

//The html code with the drop down menu. 

<div class="login_formtable">
    <label class="login_label">I am</label>
    <div id="loginselect" style="clear:both:">
            <select name="usertype" size="1"  id="usertype" class="select1" >     
 <option value="0"  selected="selected">Staff</option>
 <option value="1" >Student</option>
 <option value="2" >Parent</option>
</select>
4

1 回答 1

0

你不应该这样做。

如果要使用复选框,则需要使用UIButton或创建自己的 UI UIPickerView

如果您在 中尝试此UIWebView操作,则无法在 中获取所选值UIWebView

我想这个链接可能会对你有所帮助。

于 2013-04-12T10:54:13.273 回答