[jQuery] toggle function on checkbox

[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.
http://tinyurl.com/yo9onz http://tinyurl.com/yo9onz
My code:
$(document).ready(function(){
$("#precheck").toggle(
function () {
$(".preregbox").show('slow');
},
function () {
$(".preregbox").hide('slow');
}
);
});
--
View this message in context: http://www.nabble.com/toggle-function-on-checkbox-tp14695340s27240p14695340.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.