Displaying 1 result from an estimated 1 matches for "deleteanswer".
2006 Jun 03
12
How to get dynamically created inputs from html form back to rails app
...t;td");
btn = document.createElement("button")
btn.setAttribute ("name","answer");
btn.setAttribute("id","delete_"+table.rows.length);
btn.setAttribute ("type","button");
btn.setAttribute ("onClick","deleteAnswer(this)");
node = document.createElement("img");
node.setAttribute ("src","/images/trashcan_empty.png");
btn.appendChild(node);
data.appendChild(btn);
row.appendChild(data);
body.appendChild(row);
}
The equivalent RHTML fragment that builds the tab...