Jak kierować drugi <tr>
w tabeli przy użyciu jQuery? Czy używam .closest
lub nth-child
?jQuery - wybierz drugi wiersz w tabeli?
// something like this..
var MyLocation = $('.myclass').closest('tr').after('tr'); // fixed
<table class ='myclass'>
<tr>
<td></td>
</tr>
<!-- put some thing here -->
<tr>
</tr>
Również upewnić się, że używasz $ z okresu przed nazwą klasy zamiast $ ('moja klasa'). Bez tego okresu szukałbyś elementu o nazwie –
Zak