...

View Full Version : Adding dynamic rows in Mozilla



SaurabhChakote
09-05-2006, 03: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?

Kravvitz
09-06-2006, 04:38 AM
Check Firefox's JavaScript Console for errors.

Where is "tbl" set?

P.S. Please read Guidelines and Suggestions for Posting on Web Development Forums (http://www.dynamicsitesolutions.com/other/forum_posting_guidelines/).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum