【发布时间】:2016-03-18 01:39:28
【问题描述】:
当我双击一个选项时,它将执行 javascript 函数。
在iphone safari上测试,它只是弹出一个选择菜单列表。
无法执行javascript函数。
我该如何解决这个问题?
<select name="EmployeeID" size="5" class="bar" id="EmployeeID" style="width:80%"
scrolling="yes"
ondblclick="insertOption('FlowGo',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);putValue('FlowGo')"
>
<option value="0">----choose----</option>
</select>
【问题讨论】:
-
欢迎来到 S.O,您可以粘贴您的代码吗?
-
谢谢。就像下面这样:
<select name="EmployeeID" size="5" class="bar" id="EmployeeID" style="width:80%" scrolling="yes" ondblclick="insertOption('FlowGo',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);putValue('FlowGo')"> <option value="0">----choose----</option> </select> -
您应该编辑您的问题并在此处添加代码,而不是在评论中。这样您就可以格式化它,人们可以更轻松地阅读它。
标签: javascript jquery html select