InterviewSolution
Saved Bookmarks
| 1. |
What is the issue with the following code and how to optimize it? |
|
Answer» jQuery provides a way to filter selections based on certain characteristics like even or add. To find every even row of a table, the selector looks like this: $('TR:even')Let’s SAY If the table has ID 'users' then you can do like this: $('#users tr:even')Similarly :odd SELECTS every odd row. $('#users tr:odd’) |
|