I am writing a simple website to be displayed on the BlackBerry browser. (Using the 9700 model as baseline)
I have a simple list of options on the page, like so:
<select id="choices">
<option value="abc" onchange="jsfunction()" onclick="jsfunction()">ABC</option>
...
</select>
I want to execute a JS function when I select one of the options (so that I dont have to make the user click a button to perform an action – this is a BB browser). However, none of the events (onchange, onclick) displayed above seem to trigger when I try to select the option.
I have verified that JavaScript works in the browser, its just not firing on those events.
Thanks,
Lukasz
Use
onChange, asJose Adrian(above) said.