html
<input id="newKnt" type="checkbox" class="checkbox">
w Chrome i FF działa w IE nie.... Co tu jest nie tak?
<input id="newKnt" type="checkbox" class="checkbox">
<script type="text/javascript"> $(document).ready(function(){ $(".checkbox").change(function(){ if($(this).is(":checked")){ $(this).next("label").addClass("etykieta_wybrana"); }else{ $(this).next("label").removeClass("etykieta_wybrana"); } }); var box = document.getElementById("idBox"); if(box.checked == false) box.checked == true; // i tutaj pewnie coś z add i remove class }); </script>