maks
11-12-2008, 06:38 PM
Hi Guys,
I need some help in retreiving the first value in the dropdown list as the default value. The values are retrieved from the Oracle database through the SQl queries. the JS code for that drop down is as follows,
td.innerHTML = '<select class="formEntryField" name="_' + cr + 'aProbTypeT2' + rc + '" onChange="javascript:document.frmEntry.__' + cr + '.checked = true;" >' + probT2Codes + '<option value="" selected = "selected">* - Not Identified </option> </select>';
The above query sets the default value as * - Not Identified...but I need that default value to be the first value I get from the database.
Thanks in advance,
Kevin
I need some help in retreiving the first value in the dropdown list as the default value. The values are retrieved from the Oracle database through the SQl queries. the JS code for that drop down is as follows,
td.innerHTML = '<select class="formEntryField" name="_' + cr + 'aProbTypeT2' + rc + '" onChange="javascript:document.frmEntry.__' + cr + '.checked = true;" >' + probT2Codes + '<option value="" selected = "selected">* - Not Identified </option> </select>';
The above query sets the default value as * - Not Identified...but I need that default value to be the first value I get from the database.
Thanks in advance,
Kevin