aquaballoon

Wordpress - jQuery

May 27th, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. <script>
  2. $(document).ready(function(){
  3. $("button").click(function(){
  4. alert("Hello");
  5. // <===== **No space is allowed**
  6. });
  7. });
  8. </script>
  9.  
  10. <button> Click me </button>
  11.  
  12. -------->
  13. <script>
  14. jQuery(document).ready(function($){
  15. $("button").click(function(){
  16. alert("Hello");
  17. // <===== **No space is allowed**
  18. });
  19. });
  20. </script>
  21.  
  22. <button> Click me </button>
  23.  
  24. ------>
  25. <script>
  26. jQuery(document).ready(function(){
  27. jQuery("button").click(function(){
  28. alert("Hello");
  29. // <===== **No space is allowed**
  30. });
  31. });
  32. </script>
  33.  
  34. <button> Click me </button>
Advertisement
Add Comment
Please, Sign In to add comment