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 that could be:

$(document).ready(function(){
    $('#btn').click(function (){
                var cell = $('#myTable tr:eq(1) td:eq(2)');
                alert(cell.text());
        });
});

the concept of which is not much different from the one you posted.
in jQuery you can select elements as you would do with css selectors.

Reply via email to