[jQuery] toggle function on checkbox
I'm having a problem with toggle() and was hoping someone could help
me. Using the toggle function on a checkbox seems to have disabled the
checkbox's ability to check on and off.
<a href="http://tinyurl.com/yo9onz">http://tinyurl.com/yo9onz</a>
My code:
$(document).ready(function(){
$("#precheck").toggle(
function () {
$(".preregbox").show('slow');
},
function () {
$(".preregbox").hide('slow');
}
);
});