MemoryRefresh!

Get by index



Questions 1 Answers 0%

Pages   0 from 18
Questions   0 from 23

Reset




<script src="https://code.jquery.com/jquery-1.10.2.js"></script> <table border=1 cellpadding=10><tr><td>0</td><td>1</td><td>2</td><td>3</td></tr></table> <script> $('td:gt(0):lt(2)').css("background", "red"); // 1,2 red $('td:eq(3)').css("background", "green"); // 3 green </script>
http://api.jquery.com
Questions
1) Change cell color, index > 3




Last Review: n/a   Passed: n/a   Reviews: n/a   Next Review: n/a  



<script src="https://code.jquery.com/jquery-1.10.2.js"></script> <table border=1 cellpadding=10><tr><td>0</td><td>1</td><td>2</td><td>3</td></tr></table> <script> $('td:gt(0):lt(2)').css("background", "red"); // 1,2 red $('td:eq(3)').css("background", "green"); // 3 green </script>
http://api.jquery.com



More from Jquery

Data
Effects
Window
Attributes
Element
Basics
Ajax
Form
Uncategorized


More from Programming

Php
jQuery




Powered by minte9.com