rammie singh wrote:i have certaing heading in a table and above that table there is link .
My Requirement is : if a click on the link a new row should be craeted automatically with all the input box and other options in the row.
and if the particular row is checked ,the row is deleted.
can any body plase help me how to implement this....or any mataerial where i can get some help.
Thanks
Regards
to delete rows
the script is as:
function deleteRows(rowObjArray)
{
if (hasLoaded) {
for (var i=0; i<rowObjArray.length; i++) {
var rIndex = rowObjArray[i].sectionRowIndex;
rowObjArray[i].parentNode.deleteRow(rIndex);
}
}
}
call in html page
<input type="button" value="Delete [D]" onclick="deleteChecked();" />