Prototype.js equivalent to jquery.after ()

What is prototype.js equivalent to the following code

jQuery('#txtId').after(divdata); 
+4
source share
3 answers

http://www.prototypejs.org/api/element/insert

ok you use insert, see link above

  $('selector').insert ({'after': 'Content'}); 

in your case it will look like

 $('#txtId').insert ({'after':divdata}); 
+7
source

Look for it

 new Insertion.After('id of element', "HTML"); 

Ref

0
source

Is this job dying? I don’t think there is a shortcut like after jquery.

 $(selector).each(function(){ appendChild(document.createTextNode("Text or html to insert")); }); 
0
source

All Articles