读书人

jquery mobile 筛选框有关问题

发布时间: 2012-03-27 13:44:24 作者: rapoo

jquery mobile 筛选框问题


<fieldset data-role="controlgroup">
<legend>Agree to the terms:</legend>
<input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" />
<label for="checkbox-1">I agree</label>

怎么让点击复选框时执行一个js函数,点击I agree时执行另一个js函数

[解决办法]
<input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" onclick='你的js函数'/>
<label for="checkbox-1"><a href='javascript' onclick='Js函数'>I agree</a></label>

读书人网 >ASP

热点推荐