首页 > 编程知识 正文

宏可以实现的功能不包括,html产生复选框

时间:2023-05-04 11:06:24 阅读:116112 作者:2795

在后台,必须实现以下“checkbox”功能集:

3358 www.Sina.com/plabelfor=' zoneid '区域服选择/label input type=' text ' name=' zoneid ' id=' zoneid ' readonlyulcylce Lili输入类型=' checkbox ' name=' zoneid checkbox ' class=' subserver ' Lili输入类型=' checkbox ' name=' zoneid checkkbox ' Lili输入类型=' checkbox ' name=' zoneid checkbox ' class=' subserver ' value=' 10003 ' 10003/Lili输入类型=' checkbox ' name=' zoneid checkbox ' class=' subserver ' value=' 10004 ' 10004/Li/ul/p 3358 www.sww ()、); //区域服全选、取消全选、单选$(document ).ready (function ) )//确定是否全部取消选择的var $ subbox=$ (input (type=checkbox ) name=) zzox $subbox.click(function ) allserver ) ) 真:假; ); //全部取消选择功能($(document ).on ) click、) #allServer ()、function () ) if ) $(#allserver ) ).is653360checked ) ) //全部为varvalue=$(this ).val ); varchecked=$(this ).is(:checked ); if (已选中) (Text=value(|); }$('#zoneid ' ).val ) Text; ); }else{$('.subserver ' ).each (function ) ) $ ) input[type=checkbox] ) name='zoneidcheckbox ' ).proockbox $'#zoneid'(.val ) '); () ); //单选功能$(document ).on ) ' click ','.subServer ',function ) { var text=' '; $('.subServer ' ).each(function ) ) varvalue=$(this ).val ); varchecked=$(this ).is(:checked ); if (已选中) (Text=value(|); }$('#zoneid ' ).val ) Text; () ); 请不要使用html:。 $(this ).attr ) ' checked ',false ); 有臭虫!

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。