<select name="licenseeID" id="licenseeSelectID" /><br> <table><tr><td>Select</td><td>FileName</td><td>Date</td></tr> </table> <div id="tablediv"></div><br><br><br><br><br><br><br> <font>Company:</font> <font id="singlecompany" style="display: none;"></font> <select name="companyID" id="companySelectID" WIDTH="130px" /><br> <font>Division:</font> <font id="singledivision" style="display: none;"></font> <select name="divisionID" id="divisionSelectID"/><br> i can reference the fist select 'licenseeID' and populate it.
but the third 'divisionID' can not be referenced,which says 0.options. var licenseeid=$('#licenseeSelectID').val(); $('#divisionSelectID')[0].options.length=0;