i have a table with a lot of stuff, i need to parse it row and send data to server.
<td class="itt_text-left" title="Standart Room">Std</td>
<td class="text-center" title="HB">HB</td>
<td class="text-center">6</td>
<a name="modal" href="#dialog">advanced</a>
link advanced is same for every row, but data is different.
i need to know which link is clicked and parse it row(every td) into an array(or something) to send it via ajax request.
Using the
thiskeyword is what you want to do. This code:will create a variable
$trowwhich is a jQuery object containing the entire<tr>.You can then parse or manipulate it however you like inside that
clickhandler. For instance: