Getting Value of Drop Down Box using Java Script

Posted on Feb 2, 2009

To retrieve the value of the selected item in a drop down box on a page using java script:

document.form1.cboObject[document.form.cboObject.selectedIndex].value