Thanks Andrea, Gordon and Klaus
All your suggestions worked fine in the example HTML I posted.
I need to do a bit of fine-tuning for my actual app so I might be
back!
Paul
On 8 Feb, 14:30, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Because tds will be stored in order of appearance in the DOM - may
Because tds will be stored in order of appearance in the DOM - maybe
we can speed up that query by matching the td as a sum of cells in a
row and its position:
$('#myTable td:eq(1)'); // 2nd cell, 1st row
$('#myTable td:eq(6)'); // 2nd cell, 2nd row
$('#myTable td:eq(11)'); // 2nd cell, 3rd row
Somthing Like This
$(document).ready(function(){
$('#btn').click(function (){
alert($("#myTable tr:eq(1) td:eq(2)").html());
});
});
paulj wrote:
> In JavaScript, getElementById('myTable').rows[1].cells[2] would select
> the cell that is in 2nd row of the 3rd column.
> What is t
On 8 Feb, 04:25, paulj <[EMAIL PROTECTED]> wrote:
> In JavaScript, getElementById('myTable').rows[1].cells[2] would select
> the cell that is in 2nd row of the 3rd column.
> What is the jQ equivalent of this? (or maybe jQ has a different and
> better way of doing this?)
hi :)
one way of doing tha
4 matches
Mail list logo