Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-07-2012, 08:28 PM   PM User | #1
vexen
New Coder

 
Join Date: Jun 2007
Location: Quebec, Canada
Posts: 63
Thanks: 4
Thanked 3 Times in 3 Posts
vexen is an unknown quantity at this point
Access text node inside tag (jQuery)

Hello, I'd like to access a text node inside a tag

Tried a mix of contents() and find(), can't seem to be able to pass it to a variable

Are those even the right functions to allow me to do it?

Thanks!
vexen is offline   Reply With Quote
Old 10-07-2012, 09:05 PM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
you are probably looking for either html() or text(), or maybe even val(), depending on what the tag is.

btw, you're better off posting in the Frameworks sub-branch - this has nothing to do with the DOM or JSON
xelawho is offline   Reply With Quote
Users who have thanked xelawho for this post:
vexen (10-07-2012)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:03 AM.


Advertisement
Log in to turn off these ads.