jQuery to get innerHTML not working on a HTMLFontElement object...
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-03-23T06:57:29Z
Indexed on
2010/03/23
7:03 UTC
Read the original article
Hit count: 443
I have jQuery to select all font
elements that are children of the element with id="right"
within the html stored in the var html
... when I do an alert to see how many elements it gets:
alert($("#right > font", html).length);
it gives me an alert of: 5
but when I try any of the following, I don't get any alerts...
alert($("#right > font", html)[0].html());
alert($("#right > font", html)[0].text());
alert($("#right > font", html)[0].val());
Any Ideas?
Thanks,
Matt
© Stack Overflow or respective owner