次のコードに相当するprototype.jsとは何ですか
jQuery('#txtId').after(divdata);
次のコードに相当するprototype.jsとは何ですか
jQuery('#txtId').after(divdata);
http://www.prototypejs.org/api/element/insert
よくあなたは挿入を使用します上のリンクを見てください
$('selector').insert ({'after': 'Content'});
あなたの場合、それはこのようになります
$('#txtId').insert ({'after':divdata});
この作品は死にますか?jqueryにafterのようなショートカットがあるとは思いません。
$(selector).each(function(){
appendChild(document.createTextNode("Text or html to insert"));
});