代码拉取完成,页面将自动刷新
同步操作将从 xknaan/Bootstrap_for_DWZ 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<script type="text/javascript">
var $chk = $('input[name="sport_checkbox"]');
$chk.on('ifChanged', function(event) {
var $target = $(event.target);
var checked = $target.prop('checked');
var value = $target.val();
var msg = checked ? '选择了:' : '取消了:';
alertMsg.info(msg + value);
});
var $radio = $('input[name="sport_radio"]');
$radio.on('ifChanged', function(event) {
var $target = $(event.target);
var checked = $target.prop('checked');
var value = $target.val();
alertMsg.info('选择了:' + value);
});
</script>
<div class="pageContent">
<form action="ajaxDone1.html" id="j_image_form" class="pageForm form-validate" method="post" callback="navTabAjaxDone" noEnter>
<div class="pageFormContent" layouth="29">
<table class="table table-condensed table-hover" width="100%">
<thead>
<tr>
<th width="120" class="center">类型</th>
<th>样例</th>
<th>代码</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<label class="control-label x120" for="">复选框:</label>
</td>
<td>
<input type="checkbox" name="sport_checkbox" id="j_form_checkbox1" class="j-icheck" value="足球">
<label class="ilabel" for="j_form_checkbox1">足球 </label>
<input type="checkbox" name="sport_checkbox" id="j_form_checkbox2" class="j-icheck" value="篮球">
<label class="ilabel" for="j_form_checkbox2">篮球 </label>
<input type="checkbox" name="sport_checkbox" id="j_form_checkbox3" class="j-icheck" value="排球">
<label class="ilabel" for="j_form_checkbox3">排球 </label>
<input type="checkbox" name="sport_checkbox" id="j_form_checkbox4" class="j-icheck" value="网球">
<label class="ilabel" for="j_form_checkbox4">网球 </label>
<input type="checkbox" name="sport_checkbox" id="j_form_checkbox5" class="j-icheck" value="棒球">
<label class="ilabel" for="j_form_checkbox5">棒球</label>
</td>
<td><pre><input type="checkbox" name="sport_checkbox" id="j_form_checkbox1" class="j-icheck" value="足球">
<label class="ilabel" for="j_form_checkbox1">足球&nbsp;</label>
<input type="checkbox" name="sport_checkbox" id="j_form_checkbox2" class="j-icheck" value="篮球">
<label class="ilabel" for="j_form_checkbox2">篮球&nbsp;</label>
<input type="checkbox" name="sport_checkbox" id="j_form_checkbox3" class="j-icheck" value="排球">
<label class="ilabel" for="j_form_checkbox3">排球&nbsp;</label>
<input type="checkbox" name="sport_checkbox" id="j_form_checkbox4" class="j-icheck" value="网球">
<label class="ilabel" for="j_form_checkbox4">网球&nbsp;</label>
<input type="checkbox" name="sport_checkbox" id="j_form_checkbox5" class="j-icheck" value="棒球">
<label class="ilabel" for="j_form_checkbox5">棒球</label></pre></td>
</tr>
<tr>
<td>
<label class="control-label x120" for="">单选框:</label>
</td>
<td>
<input type="radio" name="sport_radio" id="j_form_radio1" class="j-icheck" value="足球">
<label class="ilabel" for="j_form_radio1">足球 </label>
<input type="radio" name="sport_radio" id="j_form_radio2" class="j-icheck" value="篮球">
<label class="ilabel" for="j_form_radio2">篮球 </label>
<input type="radio" name="sport_radio" id="j_form_radio3" class="j-icheck" value="排球">
<label class="ilabel" for="j_form_radio3">排球 </label>
<input type="radio" name="sport_radio" id="j_form_radio4" class="j-icheck" value="网球">
<label class="ilabel" for="j_form_radio4">网球 </label>
<input type="radio" name="sport_radio" id="j_form_radio5" class="j-icheck" value="棒球">
<label class="ilabel" for="j_form_radio5">棒球</label>
</td>
<td><pre><input type="radio" name="sport_radio" id="j_form_radio1" class="j-icheck" value="足球">
<label class="ilabel" for="j_form_radio1">足球&nbsp;</label>
<input type="radio" name="sport_radio" id="j_form_radio2" class="j-icheck" value="篮球">
<label class="ilabel" for="j_form_radio2">篮球&nbsp;</label>
<input type="radio" name="sport_radio" id="j_form_radio3" class="j-icheck" value="排球">
<label class="ilabel" for="j_form_radio3">排球&nbsp;</label>
<input type="radio" name="sport_radio" id="j_form_radio4" class="j-icheck" value="网球">
<label class="ilabel" for="j_form_radio4">网球&nbsp;</label>
<input type="radio" name="sport_radio" id="j_form_radio5" class="j-icheck" value="棒球">
<label class="ilabel" for="j_form_radio5">棒球</label></pre></td>
</tr>
</tbody>
</table>
<br>
<br>
<label>本例回调事件代码:</label>
<pre>var $chk = $('input[name="sport_checkbox"]');
$chk.on('ifChanged', function(event) {
var $target = $(event.target);
var checked = $target.prop('checked');
var value = $target.val();
var msg = checked ? '选择了:' : '取消了:';
alertMsg.info(msg + value);
});
var $radio = $('input[name="sport_radio"]');
$radio.on('ifChanged', function(event) {
var $target = $(event.target);
var checked = $target.prop('checked');
var value = $target.val();
alertMsg.info('选择了:' + value);
});</pre>
<p>* 更多参数请参见:<a href="http://www.bootcss.com/p/icheck/" target="_blank">http://www.bootcss.com/p/icheck/</a></p>
</div>
<div class="formBar">
<ul>
<li><button type="button" class="btn btn-close btn-sm">关闭</button></li>
</ul>
</div>
</form>
</div>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。