prototype.js equivalente de .after jquery ()
-
09-10-2019 - |
Pregunta
¿Cuál es el equivalente de prototype.js siguiente código
jQuery('#txtId').after(divdata);
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
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