eric_2005
11-18-2005, 02:53 AM
Hi,
I got multiple rows with same COMBOX BOX ,differentiated with its row ID.
I am able to get the row id no. But, with rowid when i
try to get the selection box element length, it fails .
By doing directly like this, i am getting value.
----> alert(document.forms[0].rowid_1.options.length);
But with this one gives error,
========================================
var x = 1;
var rowid = 1;
var comboid="document.forms[0].row_" +rowid;
alert(comboid.options.length);
====================
Error : 'options.length' is null or not an object.
========================================
Please help me to solve this ...(:
I got multiple rows with same COMBOX BOX ,differentiated with its row ID.
I am able to get the row id no. But, with rowid when i
try to get the selection box element length, it fails .
By doing directly like this, i am getting value.
----> alert(document.forms[0].rowid_1.options.length);
But with this one gives error,
========================================
var x = 1;
var rowid = 1;
var comboid="document.forms[0].row_" +rowid;
alert(comboid.options.length);
====================
Error : 'options.length' is null or not an object.
========================================
Please help me to solve this ...(: