Find the sixth cell (second row and third column ) of a 3x3 table.
HTML Code :
<!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-git.js"></script> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Find the sixth cell (second row and third column ) of a 3x3 table</title> </head> <body> <table border="1"> <tr><td>Cell-1</td><td>Cell-2</td><td>Cell-3</td></tr> <tr><td>Cell-4</td><td>Cell-5</td><td>Cell-6</td></tr> <tr><td>Cell-7</td><td>Cell-8</td><td>Cell-9</td></tr> </table> </body> </html>
JavaScript Code :
$( "td:eq(5)" ).css( "color", "red" );
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
HTML Code :
JavaScript Code :