Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <script>
- $(this).click(function(){
- $(":empty").css("background-color", "red");
- $(":empty").text('TEST!!');
- });
- </script>
- </head>
- <body><textarea>This JQuery source shows you how to find elements that are empty or not.</textarea>
- <textarea></textarea><br>
- <li></li>
- <br><br>
- <button>Find Empty Elements</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment