質問

次のコードに相当するprototype.jsとは何ですか

jQuery('#txtId').after(divdata);
役に立ちましたか?

解決

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

さて、上記のリンクを挿入してください

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

あなたの場合、それは次のようになります

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

他のヒント

これを探しています、

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

Ref

この作業は死にますか? Jqueryの後のようなショートカットがあるとは思わない。

$(selector).each(function(){
   appendChild(document.createTextNode("Text or html to insert"));
 });
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top