It may be that the name is set on the form but not the id?
IE considers name and id as interchangeable so finds the value anyway.
Try looking for name instead:

$('#ul_opts').ancestors('form').attr("name")

On 01/01/07, blemming <[EMAIL PROTECTED]> wrote:
>
> I have a UL inside some form tags and a I want to be able to get the name or
> id of that form.
>
> $('#ul_opts').ancestors('form').id()
>
> Works in IE but returns null in FF. Any thoughts?
>
> Thanks, David

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to