Your HTML for <select> is not valid. It's suppose to be in the form of:
<select id="..."> <option value="...">option</option> </select> Is there a reason you're doing it like that? On Apr 18, 8:27 pm, neil <gaojun...@gmail.com> wrote: > <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;