html代码:
<div class="ui dropdown item" id="region"> <div class="text">区域</div> <i class="dropdown icon"></i> <div class="menu"> <div class="item" data-value="1">荆州区</div> <div class="item" data-value="2">沙市区</div> <div class="item" data-value="3">开发区</div> </div> </div>
JS代码:
$("#region").dropdown({ onChange:function(a,b){ alert(a+"="+b); } });
点击以后响应回调函数onChange