Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- $(document).ready(function () {
- if ($("#e1").length <= 4) {
- $("#e1").css("background-color", "red");
- };
- if ($("#e1").length > 4) {
- $("#e1").css("background-color", "yellow");
- };
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement