jquery-like text() ?

8 views
Skip to first unread message

audreyr

unread,
Aug 27, 2009, 2:19:54 AM8/27/09
to xui-js
Is there something like x$('#box').text() to get the text value of a
node? I have a div with a text string in it, and I want to get its
text.

thanks,
a

Brian LeRoux

unread,
Aug 27, 2009, 12:54:48 PM8/27/09
to xui...@googlegroups.com
// try:
x$('#box').first().innerText;

Audrey M. Roy

unread,
Aug 27, 2009, 2:25:59 PM8/27/09
to xui...@googlegroups.com
that worked, thanks much.

Brian LeRoux

unread,
Aug 27, 2009, 2:53:08 PM8/27/09
to xui...@googlegroups.com
no probs!
Reply all
Reply to author
Forward
0 new messages