Max wrote:
i have an dropdown into my user control.
the render is :
<SELECT name="BolloAutoEdit1:cboAnno" id="BolloAutoEdit1_cboAnno">
</SELECT>
document.forms[0].elements['BolloAutoEdit1:cboAnno'].value NOT CORRECT, is
NULL
But that is correct, in Netscape 4's object model the value of a
<select> element object is always null.
You need to read out the value of a or the selected option e.g.
var form, select, value;
if ((form = document.forms[0]) && (select =
form.elements['BolloAutoEdit1:cboAnno'])) {
if (select.selectedIndex > 0) {
value = select.options[select.selectedIndex].value;
}
}
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/