$("input:checkbox:checked").val()
$("input:[type='checkbox']:checked").val();
$("input:[name='ck']:checked").val();
$('input:checkbox').each(function() {
if ($(this).attr('checked') ==true) {
alert($(this).val());
}
});
$('input:checkbox:first').attr("checked",'checked');
$('input:checkbox').eq(0).attr("checked",'true');
$('input:radio:last').attr('checked', 'checked');
$('input:radio:last').attr('checked', 'true');
$('input:checkbox).eq(索引值).attr('checked', 'true');
$('input:radio').slice(1,2).attr('checked', 'true');
$('input:radio').slice(0,2).attr('checked','true');
$("input:checkbox[value='1']").attr('checked','true');
$("input:checkbox[value='1']").remove();
$("input:checkbox").eq(索引值).remove();
$("input:checkbox").eq(2).remove();
$('input:checkbox').each(function (index, domEle) {
//写入代码
});
$('input:checkbox').each(function() {
$(this).attr('checked', true);
});
$('input:checkbox').each(function () {
$(this).attr('checked',false);
});
<input type="checkbox" name="myBox" id="chkOne" value="1" checked="checked" />
$("#chkOne").click(function(){});
<input type="checkbox" name="myBox" class="chkTwo" value="1" checked="checked" />
$(".chkTwo").click(function(){});
<input type="checkbox" name="someBox" value="1" checked="checked" /> <input type="checkbox" name="someBox" value="2" />
$("input[name='someBox']").click(function(){});
<input type="checkbox" name="box" value="0" checked="checked" /> <input type="checkbox" name="box" value="1" /> <input type="checkbox" name="box" value="2" /> <input type="checkbox" name="box" value="3" />
$("input[name='box']").each(function(){});
$("input[name='box']").attr("checked","checked");
$("input[name='box'][checked]").each(function(){
if (true == $(this).attr("checked")) {
alert( $(this).attr('value') );
}
$("input[name='box']:checked").each(function(){
if (true == $(this).attr("checked")) {
alert( $(this).attr('value') );
}
$("input[name='box']").each(function(){
if ($(this).attr('checked') ==false) {
alert($(this).val());
}
});
$(this).attr("value",值);
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有