Re: DOM Utility with Firefox
- Hi Satyen,
Thank you very much, you were right on!!
> It's likely that your "sDate" element has a name="sDate" attribute,
> but does not have an id="sDate" attribute.
> It maybe something like:
> <input type="text" name="sDate" value="Apr 30, 2007" />
> Changing it to:
> <input type="text" name="sDate" id="sDate" value="Apr 30,
> should fix the issue.
> DOM's get/getXY methods expect the String passed in to refer to
> of the element you're interested in (and not the name).elements by
> The reason that they work in IE with a name is because IE's
> implementation of getElementById, which DOM uses, looks up
> both name and id and is not something which should be relied upon.support
> In general, the link below defines and explains YUI's browser
> in detail:
> Hope that helps,