문제

What is the prototype.js equivalent of following code

jQuery('#txtId').after(divdata);
도움이 되었습니까?

해결책

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

well you use insert look at the link above

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

in your case it would look like this

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

다른 팁

Are looking for this,

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

Ref

Dies this work? I dont think there is a shortcut like after in jquery.

$(selector).each(function(){
   appendChild(document.createTextNode("Text or html to insert"));
 });
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top