dongtong0796
2016-09-28 07:12
浏览 1.2k

下拉选择框选项在Chrome浏览器中不起作用

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>

<option><span>French</span></option>

</select>
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dream_high1026 2016-09-28 07:20
    已采纳

    use onchange on the select tag--

    <select name="setlanguage" id="setlanguage" class="language" onchange="alert('worked')" data-ng-model="setlanguage">
         <option>English</option>
         <option>French</option>
    </select>
    
    点赞 评论

相关推荐 更多相似问题