This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
<b> How many names to be entered?
<input type="number" name="nofield" id="nofield" value="0" required="required" width="7" onchange="showdata()"/>
<table border="0" id = "table1">
var val= document.getElementById("nofield").value;
var tab = document.getElementById("table1");
var oRow = tab.insertRow(-1);
oCell.innerHTML = "<b>Name";
oCell.innerHTML = "<input type=\"text\" name=\"name1\" id=\"name1id\">";
oCell.innerHTML = "<b>Here I am";
I will be providing random names i.e. names like name1, name2, name3 and so on depending upon the number the user specifies.
Joined: Aug 21, 2012
oh god !!! Stupid me !
I was using the "id" instead of "name" attribute in the servlet function getParameter().
The code is working.
thanks for all who made the effort to solve my issue.