Try using the DOM function .nextSibling
to pick the next node (including the text nodes) and use nodeValue
to get the text All the world
$(':checkbox')[0].nextSibling.nodeValue
More Related Contents:
- jQuery select and wrap textNode
- How to get the children of the $(this) selector?
- Get selected text from a drop-down list (select box) using jQuery
- jQuery selector regular expressions
- Assign click handlers in for loop
- How can I select an element by name with jQuery?
- How do I get jQuery to select elements with a . (period) in their ID?
- jQuery selectors on custom data attributes using HTML5
- How can I get selector from jQuery object
- Select all elements that have a specific CSS, using jQuery
- jQuery function to get all unique elements from an array?
- jQuery DOM changes not appearing in view source
- Testing if a checkbox is checked with jQuery
- jQuery : select all element with custom attribute [duplicate]
- Selecting multiple classes with jQuery
- Case insensitive jQuery attribute selector
- How do you check if a selector matches something in jQuery? [duplicate]
- Not class selector in jQuery
- jQuery single selector vs .find()
- jQuery Selector + SVG Incompatible?
- Using jQuery to search a string of HTML
- Count immediate child div elements using jQuery
- jQuery find and replace string
- Is there a ‘has focus’ in JavaScript (or jQuery)?
- jQuery support “:invalid” selector
- Combine two selectors with one jQuery object
- How to select empty inputs (value=””) using jQuery
- What is the new proper way to use a child selector with a context node in jQuery?
- jQuery selector to target any class name (of multiple present) starting with a prefix?
- jQuery: Select data attributes that aren’t empty?