Some more info :
I've spotted the origin of evil , and I already had this problem
before, but it still seems weird to me : In the form, I have an input,
with the name "id". For some reason, IE mixes up the ID attribute of
the form element and the input elemnt named "id" belonging to the
form.

Isn't this a bug ? Or are we not supposed to have forms with fields
named "id" ? (I remember having the same problem a few weeks ago with
a field named "action", and I wanted to get the form "action"
attribute, and it was the same kind of mess).

Cheers

--
Vincent


On 4 avr, 11:16, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I have a problem with setting IDs, which happens only in IE. Here is the
> code :
>
>         alert($('div#DHTMLSuite_modalBox_contentDiv > form').length+' - '
> +$('div#DHTMLSuite_modalBox_contentDiv > form').attr('id'));
>         $('div#DHTMLSuite_modalBox_contentDiv > form').attr('id','faqForm'
> );
>         alert($('div#DHTMLSuite_modalBox_contentDiv > form').attr("id"));
>
> In IE6, here's what I get :
>         - first alert : "1 - [object]"
>         - second alert : "[object]"
>
> In Firefox, I get :
>         - first alert : "1 - faqForm_original"
>         - second alert : "faqForm"
>
> The problem is that after that I'm doing some change based on the form ID,
> so with IE it doesn't work because I can't get the form ID. It works fine
> with FF.
>
> Does anybody have an idea on what's going on here ?
>
> Cheers
>
> --
> Vincent
>
> *************************************************************************
> This message and any attachments (the "message") are confidential and 
> intended solely for the addressee(s).
> Any unauthorised use or dissemination is prohibited. E-mails are susceptible 
> to alteration.
> Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be 
> liable for the message if altered, changed or
> falsified.
>                               ************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont 
> confidentiels et etablis a l'intention exclusive de ses
> destinataires. Toute utilisation ou diffusion non autorisee est interdite. 
> Tout message electronique est susceptible d'alteration.
> La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre 
> de ce message s'il a ete altere, deforme ou falsifie.
> *************************************************************************

Reply via email to