How can you interact with this structure:
$('tbody tr')[1].css("display", "none"); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <tbody> <tr></tr> <tr></tr> <tr></tr> </tbody> How can you interact with this structure:
$('tbody tr')[1].css("display", "none"); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <tbody> <tr></tr> <tr></tr> <tr></tr> </tbody> .eq() to get a jQuery wrapper around a selection element. $('tbody tr').eq(1).css("display", "none"); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <table border=1> <tbody> <tr><td>One</td></tr> <tr><td>Two</td></tr> <tr><td>Three</td></tr> </tbody> </table> Source: https://ru.stackoverflow.com/questions/786127/
All Articles