Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <div>
- <p>This is <strong>first</strong> paragraph</p>
- <p>And this one is second</p>
- <span><h2>I am p inside span</h2></span>
- <h1>I am h1</h1>
- </div>
- <div name="divName">
- <p><a href="www.google.pl">This is a paragraph in second div</a></p>
- </div>
- </body>
- //Another file
- $(document).ready(function() {
- $("div[p]").css("background-color", "green");
- $("a[@href]").css("background-color", "yellow");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement