Pregunta

¿Cuál es el equivalente de prototype.js siguiente código

jQuery('#txtId').after(divdata);
¿Fue útil?

Solución

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

también se utiliza inserción vistazo al enlace anterior

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

en su caso, se vería así

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

Otros consejos

busca esto,

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

Ref

Dies este trabajo? No creo que hay un acceso directo al igual que después de jQuery.

$(selector).each(function(){
   appendChild(document.createTextNode("Text or html to insert"));
 });
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top