I am having 3 text boxes in a table if i cli开发者_如何学Cck add button the same text boxes need to append in the same page using javascript.Please help me
Ypur question is not clear but i guess you want something like this
function buttonClick(parent){
var test = document.createElement("input");
test.setAttribute("type", "text");
test.setAttribute("name", "someName");
parent.appendChild(test);
}
call this function on button click event with a parent element as arguement
精彩评论