Hi,
When I try to use text() to get text value from the document title tag
IE return an empty string (FF returns the correct value).
/* doesn't work in IE (6 and 7) */
var title = $("title").text();
alert(title);
/* works in all browsers */
var title = $("title").html();
alert(title);
However, if I instead use html(), it seems to work in all browsers.
Known bug or is it something that I have missed?
Thanks...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---