Posted By

tomdowning on 09/21/11


Tagged

jquery


Versions (?)

jQuery button click


 / Published in: jQuery
 

  1. //click toggle
  2. $('#button id').toggle(function() {
  3. //down
  4.  
  5. }, function() {
  6. //out
  7.  
  8. });
  9.  
  10.  
  11. //single click
  12. //click toggle
  13. $('#button id').bind('click', function() {
  14. //click
  15.  
  16. });

Report this snippet  

You need to login to post a comment.