What is prototype.js equivalent to the following code
jQuery('#txtId').after(divdata);
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});
Look for it
new Insertion.After('id of element', "HTML");
Ref
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")); });