To set the html contents of matched elements using jQuery's .html()
method, you would do it like this:
$("#myTable tr:eq(4) td:eq(3)").html("new text")
http://docs.jquery.com/Attributes/html#val
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 2, 2009, at 12:40 PM, JAS wrote:
Well I tried:
$("#myTable tr:eq(4) td:eq(3)").html = "new text";
and, while it gave no error, it also produced no result.
Any other ideas?
JAS
On Feb 2, 5:15 pm, ksun <kavi.sunda...@gmail.com> wrote:
try $("#myTable tr:eq(4) td:eq(1)").html() for the 5th row and 2nd
column
On Feb 2, 5:46 am, JAS <james.sch...@gmail.com> wrote:
I am (very) new to jQuery, and I have what I think must be a simple
question.
Without jQuery, I would write:
var oCell = document.getElementById('myTable').rows[5].cells
[2].innerHTML = "something new";
but I do not understand how to write this same line in jQuery.
Thanks to anyone who can help.
JAS