What about just $('#divisionSelectID')
? That should reference the select. Am I missing something? Rick On Sun, Apr 19, 2009 at 2:27 AM, 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; > > -- ----------------------------------------------------------------------------------------------------------------------------------------------------------------- "It has been my experience that most bad government is the result of too much government." - Thomas Jefferson