Insert value of dynamic generated text box in jsp using javascript
hello sir , i want to generate dynamic text box at run time and i did that using javascript code given at your site now sir problem is i am not able to insert that dynamically generated text box value into database at a time without reloading the page what i want is i can insert the multiple columns value generated dynamically at the same time without reloading the page here is the code that i am using for dynamic row generation.
<script LANGUAGE="JavaScript"><!--<!--
function addRow(tableID){
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var cell1 = row.insertCell(0);
var element1 = document.createElement("input");
element1.type = "text";
cell1.appendChild(element1);
var cell2 = row.insertCell(1);
var element2 = document.createElement("input");
element2.type = "text";
cell2.appendChild(element2);
var cell3 = row.insertCell(2);
var element3 = document.createElement("input");
element3.setAttribute("name","mytextarea");
element3.setAttribute("cols","20");
element3.setAttribute("rows","1");
cell3.appendChild(element3);
var cell4 = row.insertCell(3);
var element4 = document.createElement("input");
element4.type="textfield";
cell4.appendChild(element4);
</script>
View Answers
Ads
Related Tutorials/Questions & Answers:
Advertisements
how to insert checkbox value into database using jsp
how to
insert checkbox
value into database
using jsp How to
insert check
box value to the oracle database
using jsp?
I want to create hotel's package. where the admin will select the activities to
insert in the PACKAGE table. I
how to insert checkbox value into database using jsp
how to
insert checkbox
value into database
using jsp How to
insert check
box value to the oracle database
using jsp?
I want to create hotel's...;
Here is a simple
jsp code that
insert the selected checkbox values
populating text box using jsp code
populating
text box using jsp code Sir,
How to populate related values in a
text box after selecting
value from drop down list
using JSP and mysql.... Please give an example
using jsp code only.
dependentDropdown.jsp
Drag a Text Box into dynamic positions
Drag a
Text Box into
dynamic positions Plz can anyone tell how can i drag a
text box using mouse or arrow keys... Im doing a accounts projects and i need this feature for cheque configuration
how to insert value in dynamic table
how to
insert value in
dynamic table i am creating a project... a
dynamic table for every company.but whenever i'm inserting values to the company...=con.prepareStatement("
insert into "+company+year+"(firstname,lastname,email
JSP Value to JavaScript
JSP Value to
JavaScript
JSP Value to
JavaScript tells you to pass the
value from
JSP to
JavaScript.
The
JavaScript create a function
i want to pass Javascript value to JSP scriptlet..
i want to pass
Javascript value to
JSP scriptlet.. i am having a problem that, i am having a combo
box in the
JSP page when i select an item from that i
am calling the onchange function.
In
javascript i am getting the
value
using insert and delete in a single page in jsp
using insert and delete in a single page in jsp I am
using the following code in
jsp to declare two
javascript functions to
insert and delete in a single
jsp page but
insert function doesn't works only delete function works even
How to check text in textbox using JavaScript
How to check
text in textbox
using JavaScript How to check
text in textbox
using JavaScript
I have a form in HTML that contains
text feilds... qestion is that is it possible to check
text feilds for
text or null
value. I want
how to insert data in database using html+jsp
how to
insert data in database
using html+jsp anyone know what...";
// declare a connection by
using Connection interface...").newInstance();
/* Create a connection by
using getConnection() method