children()

Returns the immediate children (inner HTML) of the elements in a result set.

Examples

This script retrieves the inner HTML of an element selected from a snippet.

var snippet = loadhtml('snippets/snippet.html','#foobar').children(); 
results.append(snippet);

The following script retrieves the inner HTML of the elements and then performs a find/replace.

var snippet = loadhtml('snippets/snippet.html','#foobar').children(); 
snippet.find('@firstname@').text('foobar');
results.append(snippet);
 
  • Last Topic Update: 24/01/2017 09:32
  • Last Published: 7/6/2017 : 9:49 AM