SaurabhChakote
09-05-2006, 02:40 PM
Hi Techies ,
For adding dynamic rows, I am using like this.
var index = new Array ( "A" , "B" , "C" , "D" , "E" , "F" , "G" , "H" , "I" , "J" , "K" , "L" , "M" , "N" , "O" , "P" , "Q" , "R" , "S" , "T" , "U" , "V" , "W" , "X" , "Y" , "Z" ) ;
var lastRow = tbl.rows.length;
var iteration = lastRow;
var row = tbl.insertRow(lastRow);
var cell3 = row.insertCell(2);
cell3.innerHTML = "<INPUT type='checkbox' name='is_correct'
id='is_correct' value='" + index[iteration-1] + "'>" ;
In this is_correct is of type String[]. In mozilla even if I select the value of checkbox it is giving me is_correct=null. In IE it is giving me proper value.
can you help me on this point. Can you tell me instead of innerHTML what can I use?
For adding dynamic rows, I am using like this.
var index = new Array ( "A" , "B" , "C" , "D" , "E" , "F" , "G" , "H" , "I" , "J" , "K" , "L" , "M" , "N" , "O" , "P" , "Q" , "R" , "S" , "T" , "U" , "V" , "W" , "X" , "Y" , "Z" ) ;
var lastRow = tbl.rows.length;
var iteration = lastRow;
var row = tbl.insertRow(lastRow);
var cell3 = row.insertCell(2);
cell3.innerHTML = "<INPUT type='checkbox' name='is_correct'
id='is_correct' value='" + index[iteration-1] + "'>" ;
In this is_correct is of type String[]. In mozilla even if I select the value of checkbox it is giving me is_correct=null. In IE it is giving me proper value.
can you help me on this point. Can you tell me instead of innerHTML what can I use?