jq判断checked是否选中

Html:

<input id='timesingle1' name="singleInput" type="checkbox" checked="true" />

jq:

if($(".timeListsingle input",parent.document).is(':checked')){//如果选中
				$(".timeListBox>span",parent.document).remove();
				$(".timeListBox",parent.document).append(span);
			}else{
				window.parent.disable("#dlbjfxSelect");
				$(".timeListBox",parent.document).append(span);
			}

猜你喜欢

转载自blog.csdn.net/qq_36784628/article/details/81205063