[jQuery] Why isn't $() working for me?

[jQuery] Why isn't $() working for me?

> $('#control').innerHTML = 'jquery? Why do you hate me?'; // this line
doesn't work, and no errors either.
It probably worked fine and returned an object to you, assuming you have a
div named control. But since since when did the jQuery object get an
.innerHTML property? There's no error in setting a new property named
innerHTML, but since the jQuery object never uses it there isn't much
utility in doing it either.
You could try something like this:
$('#control').html("Oh jQuery, why must I RTFM? :-) ");
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/