Posted By

thesmu on 10/31/13


Tagged

checkboxformshowhide


Versions (?)

show div on checkbox check


 / Published in: jQuery
 

URL: http://jsfiddle.net/addyosmani/ND428/

show div on checkbox check

  1. $('.check').change(function () {
  2. if ($(this).attr("checked"))
  3. {
  4.  
  5. $('.mydiv').fadeIn();
  6. return;
  7. }
  8. $('.mydiv').fadeOut();
  9. });

Report this snippet  

You need to login to post a comment.