Hello all,
please consider this code snippet, which works fine:
- ld: function ($t, $h) { //load HTML of target selection into DOM
- var $c = $h.clone();
- $c.find("script").remove(); //prevent double firing of scripts
- $t.html($c.html()); //inject div into primary DOM
- }
I would like to tranpose the last line to use replaceWith() instead of html()