Advertisement
reenadak

jQuery Example page

Apr 29th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.40 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>JQuery Referencing</title>
  5.     <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
  6.  
  7.     <script>
  8.         $(document).ready(function(){
  9.             $("#btnClick").click(function(){
  10.                 $("#myPara").css("background-color", "pink");
  11.             })
  12.         });
  13.     </script>
  14.  
  15. </head>
  16. <body>
  17.  
  18.     <p id="myPara">First jQuery</p>
  19.     <button id="btnClick">Click Me !!!</button>
  20. </body>
  21. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement