Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Tiêu đề</title>
- <script src="http://code.jquery.com/jquery-latest.js"></script>
- <script>
- $(function(){
- $('li').eq(3).css('background-color','yellow');
- });
- </script>
- </head>
- <body>
- <ul>
- <li>Thành phần thứ 1</li>
- <li>Thành phần thứ 2</li>
- <li>Thành phần thứ 3</li>
- <li>Thành phần thứ 4</li>
- <li>Thành phần thứ 5</li>
- </ul>
- </body>
- </html>
- Thành phần thứ 1
- Thành phần thứ 2
- Thành phần thứ 3
- Thành phần thứ 4(browser will show "backgruond-color:yellow" in here)
- Thành phần thứ 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement