Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You only call those jQuery functions after getting the jQuery object $(SELECTOR). If you saying you don't need the jQuery selector code and just want functions that take (perhaps) an HTML DOM element you'd have to rip it from the jQuery source code (<a href="http://code.jquery.com/jquery-latest.js" rel="nofollow noreferrer">http://code.jquery.com/jquery-latest.js</a>), with dependencies and just the size and complexity this can be a painful process.</p> <p>JS equivalents:</p> <p>.detach - .removeChild</p> <pre><code>var par = elm.parentNode; par.removeChild(elm); </code></pre> <p>.insertAfter - .insertBefore <a href="https://stackoverflow.com/questions/4793604/how-to-do-insert-after-in-javascript-without-using-a-library">How to do insert After() in JavaScript without using a library?</a></p> <pre><code>function insertAfter(referenceNode, newNode) { referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); } </code></pre> <p>.on - addEventListener / attachEvent</p> <pre><code>if(elm.addEventListener) elm.addEventListener(EVENT_NAME, function() {}, false); else elm.attachEvent('on' + EVENT_NAME, function() {}); </code></pre> <p>Now if you want to bind events so that the handler has a THIS reference to a specific object...</p> <pre><code>function bind( scope, fn ) { return function () { fn.apply( scope, arguments ); }; } if(elm.addEventListener) elm.addEventListener(EVENT_NAME, bind(SCOPE_OBJECT, function(){}), false); else elm.attachEvent('on' + EVENT_NAME, bind(SCOPE_OBJECT, function(){})); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload