Posted By

snippetleon on 01/30/13


Tagged

javascript jquery function init


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Some0ne


Quick jQuery init function


 / Published in: jQuery
 

Simple init function setup

  1. <script>
  2. (function() {
  3.  
  4. $('html').addClass('js');
  5.  
  6. var contactForm = {
  7. init: function() {
  8. // init code here
  9. }
  10. };
  11.  
  12. // call the init
  13. contactForm.init();
  14.  
  15. })();
  16. </script>

Report this snippet  

You need to login to post a comment.