[jQuery] toggle function on checkbox

2008-01-08 Thread Jeff

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');
  }
   );
});



[jQuery] toggle function on checkbox

2008-01-08 Thread jpl80


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.