jsToolboxMJK.page.elements - mkloubert/jsToolbox GitHub Wiki

$jsTB.page.elements property

Stores page specific elements / selectors.

Syntax

$jsTB.page.elements;

Examples

Example 1

<div id="myDiv">
  <div></div>
  <p></p>
  <div></div>
</div>
// best way to add a selector
// to '$jsTB.page.elements'
$jsTB.page.addElement('myChildDivs', '#myDiv div');

// 2
alert($jsTB.page.elements
                .myChildDivs.length);
⚠️ **GitHub.com Fallback** ⚠️