Show / Hide Div on Click (.toggle) jQuery


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $(document).ready(function() {
  2. $('.div').click(function() {
  3. $('#contentbox').toggle(400);
  4. return false;
  5. });
  6. });

Report this snippet


Comments


You need to login to view comments.