Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-07-2012, 09:28 PM #1
- Join Date
- Jun 2007
- Quebec, Canada
- Thanked 3 Times in 3 Posts
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?
10-07-2012, 10:05 PM #2
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
Users who have thanked xelawho for this post: