The jQuery way: $('#state').filter('select').doSomething();
--Klaus On 16 Feb., 00:23, RobG <rg...@iinet.net.au> wrote: > On Feb 15, 9:20 pm, "angelochen...@gmail.com" > > <angelochen...@gmail.com> wrote: > > Hi Rob, > > > Thanks for the quick reply, actually state has a id='state', I can > > obtain it : > > > element = document.getElementById("state"); > > > and this element can be either an 'input' or a 'select', is there a > > way to determine during runtime? > > if (element.tagName.toLowerCase() == 'select') { > // it's a select > > } > > -- > Rob