Return to Snippet

Revision: 28517
at July 9, 2010 01:32 by kwanhon


Initial Code
function onClickCb(){
	if($('#cb').is(':checked')){
		$("#div1").show();
	}else{
		$("#div1").hide();
	}
}
onClickCb();
$("#cb").click(onClickCb);

Initial URL
http://api.jquery.com/checked-selector/

Initial Description

                                

Initial Title
Check Checkbox State

Initial Tags

                                

Initial Language
jQuery