2010-12-07 105 views
4

什麼的prototype.js相當於下面的代碼的prototype.js相當於jQuery的。經過()的

jQuery('#txtId').after(divdata); 
+0

你的意思是javascript equivalvent? – kobe 2010-12-07 07:25:17

+0

@gov他的意思是原型js,而不是vanila js之一。 ;) – Reigel 2010-12-07 07:26:20

+0

@regel我總是聽到vanila js,這是什麼意思? – kobe 2010-12-07 07:28:03

回答

0

正尋求這方面,

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

Ref

0

模具這項工作?我不認爲有像jQuery後快捷方式。

$(selector).each(function(){ 
    appendChild(document.createTextNode("Text or html to insert")); 
});