Hi,
Im new to javascript. Im using asp.net 2005 with c#.net
In my project, i promote my users to add the rows
dynamically without
postback using javascript.
My table is looking like this,
column1: column2:
row1: car BMW
Bens
Toyoto
row2: bike Yamaka
Suzuki
The column2 is the checkboxes.
Using the following script i make the dupicate copy of the
selected
row.
function addrow(rownum)
{
var table=document.getElementById('TABLE2');
var clonedRow = table.rows[rownum+1].cloneNode(true);
table.tBodies[0].appendChild(clonedRow);
}
It's working fine. But 'm not able to access the rows which
i
dynamically added.
Before i submit the page, i want to take the selected
checkbox values
and put it into hidden value. For this 'm trying to count
the number
of checkbox controls. But 'm not able to do it.
How can i count the number of controls in a perticular cell,
thereby
using the loop is it possible to validate whethere it is
checked or
not.
Can any one help me?.......
Thanks a lot.
Regards
Raja.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Information googlegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---
|