<INPUT type="button" name="element1" value="text" önclick="add(document.forms[0].element1.value)" style="width: 57px"/>
<script language="javascript"/> function add(type) { //Create an input type dynamically. var element = document.createElement("input"); //Assign different attributes to the element. element.setAttribute("type", type); element.setAttribute("value", type); element.setAttribute("name", type); }
var divTOAdd = document.getElementById("myDivName"); divTOAdd.appendChild(myElement);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)