Nicky McCurdy
Nicky McCurdy

Reputation: 19534

JavaScript Dropdown Lists: Select onClick

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 selection from Safari for iPhone?

Upvotes: 2

Views: 2294

Answers (2)

Mitch Dempsey
Mitch Dempsey

Reputation: 39869

Perhaps try onchange ?

Upvotes: 3

Karel Petranek
Karel Petranek

Reputation: 15154

Try onchange:

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

Upvotes: 3

Related Questions