Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>JQuery Referencing</title>
- <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
- <script>
- $(document).ready(function(){
- $("#btnClick").click(function(){
- $("#myPara").css("background-color", "pink");
- })
- });
- </script>
- </head>
- <body>
- <p id="myPara">First jQuery</p>
- <button id="btnClick">Click Me !!!</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement