开发者

JavaScript Dropdown Lists: Select onClick

开发者 https://www.devze.com 2023-01-09 17:40 出处:网络
In a web application I\'m working on, I decided to consolidate a few buttons by turning them into select elements of one dropdown list, with onClick events loading for each option pressed. However, th

In a web application I'm working on, I decided to consolidate a few buttons by turning them into select elements of one dropdown list, with onClick events loading for each option pressed. However, this does not work in iOS (Safari on the iPhone). Is there a different event I can use to grab menu se开发者_开发知识库lection from Safari for iPhone?


Try onchange:

<select name="foo" onchange="bar();">
<!-- etc. -->


Perhaps try onchange ?

0

精彩评论

暂无评论...
验证码 换一张
取 消