首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

jquery mobile 筛选框有关问题

2012-03-27 
jquery mobile 筛选框问题fieldset data-rolecontrolgrouplegendAgree to the terms:/legendinp

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>

热点排行