jquery common function syntax


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



Copy this code and paste it in your HTML
  1. $(function() {
  2. // Handler for .ready() called.
  3. });
  4.  
  5. //waits until all page assets loaded
  6. $(window).load(function(){
  7. // Handler
  8. });
  9.  
  10.  
  11. $('#target').click(function() {
  12. alert('Handler for .click() called.');
  13. return false;
  14. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.