prototype.js jquery .after()に相当
-
09-10-2019 - |
質問
次のコードに相当するprototype.jsとは何ですか
jQuery('#txtId').after(divdata);
解決
http://www.prototypejs.org/api/element/insert
さて、上記のリンクを挿入してください
$('selector').insert ({'after': 'Content'});
あなたの場合、それは次のようになります
$('#txtId').insert ({'after':divdata});
他のヒント
この作業は死にますか? Jqueryの後のようなショートカットがあるとは思わない。
$(selector).each(function(){
appendChild(document.createTextNode("Text or html to insert"));
});
所属していません StackOverflow