/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function onClickCb(){ if($('#cb').is(':checked')){ $("#div1").show(); }else{ $("#div1").hide(); } } onClickCb(); $("#cb").click(onClickCb);
URL: http://api.jquery.com/checked-selector/
Comments
