How to group functions in jQuery


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



Copy this code and paste it in your HTML
  1. jQuery('#foo').bind({
  2. click: function() {
  3. // do something
  4. },
  5. mouseover: function() {
  6. // do something
  7. },
  8. mouseout: function() {
  9. // do something
  10. }
  11. })
  12.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.