Tim’s solution will work. If your markup is always fixed in that format and you only need to read that first stretch of text up to the child element, you could even get away with simply:
node.firstChild.data
More Related Contents:
- javascript: hiding contents of key
- Need Pattern for password field?
- jQuery Ajax POST example with PHP
- Using jQuery’s ajax method to retrieve images as a blob
- How to import jquery using ES6 syntax?
- How to get a style attribute from a CSS class by javascript/jQuery?
- Submit multiple forms with one submit button
- How to load all the images from one of my folder into my web page, using Jquery/Javascript
- Jquery: change event to input file on IE
- jquery clone form fields and increment id
- Preventing click event with jQuery drag and drop
- Limiting number of lines in textarea
- Javascript with jQuery: Click and double click on same element, different effect, one disables the other
- jQuery counting elements by class – what is the best way to implement this?
- Google Maps Display:None Problem
- JavaScript keypress event not raised on Android browser
- Error handling in getJSON calls
- How to make Jquery UI Tabs scroll horizontally if there are too many tabs
- jQuery: Toggling between 3 classes (initially)
- Choosing Mobile Web HTML5 Framework [closed]
- Check if date is in the past Javascript
- how to bind Bootstrap-datepicker element with angularjs ng-model?
- Is JQGrid free?
- Show text letter by letter
- Prevent firing focus event when clicking on div
- Get element’s ID and set it as variable
- Load ajax when scroll reaches 80%
- How can I execute a script after calling window.location.href?
- Automatically scroll down chat div
- How to return an array from an AJAX call?