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

Reply via email to