jQuery Basics Setup


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

Update: Fixed a bug at the basic click() function.


Copy this code and paste it in your HTML
  1. $(document).ready(function(){
  2. /* Elements Visibility
  3. /////////////////////////////////////////////////////////////////*/
  4. $('.element').hide();
  5. /* Elements Functionality
  6. /////////////////////////////////////////////////////////////////*/
  7. $('.element').click(function(){
  8. return false;
  9. });
  10. $('.element').mouseout(function(){
  11. }
  12. });
  13. $('.element').mouseover(function(){
  14. }
  15. });
  16. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.