错误信息提示:
错误号:12142

错误原因:

错误SQL语句:
select * from user_skin where  find_in_set('sysai.net',replace(host,'|',','))

Warning: fopen(/error/2025-06-26.txt): failed to open stream: No such file or directory in /opt/lampp/htdocs/sysai/inc/datai.php on line 247
文件 2025-06-26.txt 不可写

sysai
『 자료실 』
현재위치 : HOME > 자료실
jquery checkbox
글쓴이 : 매니저 작성일 : 2022-11-06

jQuery设置checkbox 为选中状态

1设置第一个checkbox 为选中值
$('input:checkbox:first').attr("checked",'checked');

或者
$('input:checkbox').eq(0).attr("checked",'true');

2、设置最后一个checkbox为选中值
$('input:checkbox:last').attr('checked', 'checked');

或者
$('input:checkbox:last').attr('checked', 'true');

3、根据索引值设置任意一个checkbox为选中值
$('input:checkbox).eq(索引值).attr('checked', 'true');索引值=0,1,2....

或者
$('input:checkbox').slice(1,2).attr('checked', 'true');

4、选中多个checkbox同时选中第1个和第2个的checkbox
$('input:checkbox').slice(0,2).attr('checked','true');

5、根据Value值设置checkbox为选中值
$("input:checkbox[value='1']").attr('checked','true');

6、设置某一个checkbox为选中值

选中checkbox:$(":checkbox").prop("checked", true);
取消选中:$(":checkbox").prop("checked", false);

목록


홈으로 | 이용안내 | 이용약관 | 개인정보보호정책 | 제휴문의 | 질문과답변 | 자주하는 질문
Copyright © 2011 - 2014 SYSAI Work Group, All Rights Reserved 주소:길림성연길시,우편:133300 Version 3.0 Run Time 0.233s