公告
财富商城
积分规则
提问
发文
2019-08-04 04:49发布
We Are One
How written the jquery
DropDown list selected index change event how to work jquery?
You can use below code:
<select id="selDiv" name="selDiv"> <option>111</option> <option>222</option> <option>333</option> </select> $('#selDiv').change(function(){ /// you can write you code what you want to do... });
<select class="target"> <option value="option1" selected="selected">Option 1</option> <option value="option2">Option 2</option> </select> $(document).ready(function(){ $('.target').change(function() { alert('Dropdown Changed'); }); });
Further Reference
最多设置5个标签!
You can use below code:
Further Reference