sunil sunil - 1 year ago 143
AngularJS Question

dropdown select box option not working in chrome browser

when i select the language english in firefox then alert come but when i

select it in chrome then alert not display.i don't know what is wrong there.

below is the code of select box:

<select name="setlanguage" id="setlanguage" class="language" data-ng-model="setlanguage">

<option onclick="alert();"><span>English</span></option>



Answer Source

use onchange on the select tag--

<select name="setlanguage" id="setlanguage" class="language" onchange="alert('worked')" data-ng-model="setlanguage">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download