JavaScript/java and database
<p>I'm creating a dynamic table using the following javaScript. Those columns(3 col) names are given in the code below. I want to insert the values of those several rows (not single record) to database using Java language. Can someone write a code for that. Please help me to do that........ Thankx.</p>

<pre><code>function addRow(tableID) {

       var table = document.getElementById(tableID);
        if(count&lt;=limit){
        var rowCount = table.rows.length;
        var row = table.insertRow(rowCount);

        var cell1 = row.insertCell(0);
        var element1 = document.createElement("input");
        element1.type = "checkbox";
    cell1.appendChild(element1);

        var cell2 = row.insertCell(1);
        cell2.innerHTML = rowCount;

        var cell3 = row.insertCell(2);
        for(var i=0; i&lt;=count-1; i++){
        cell3.innerHTML = "&lt;input type='text' name='materialName'&gt;";                
        }
        var cell4 = row.insertCell(3);
        cell4.innerHTML = "&lt;input type='text' name='required'&gt;";

        var cell5 = row.insertCell(4);
        cell5.innerHTML = "&lt;input type='text' name='floor'&gt;";   
        count++;

        } else{
         alert( "You have entered maximum " + count +" numbers of rows");
        }

    }
</code></pre>
