Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Name's & ID's

7 views
Skip to first unread message

Harald

unread,
Apr 22, 2003, 1:17:19 PM4/22/03
to
Can the Name and ID attributes of an HTML element be the same, or can that
screw things up elsewhere?

ie:

<input type="checkbox" name="YES" id="YES">

Thanks.

--
Harald


Evertjan.

unread,
Apr 22, 2003, 1:21:58 PM4/22/03
to
Harald wrote on 22 apr 2003 in comp.lang.javascript:
> Can the Name and ID attributes of an HTML element be the same, or can
> that screw things up elsewhere?
>
> ie:
>
> <input type="checkbox" name="YES" id="YES">

Can be the same, it will perhaps screw the mind of the programmer.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Harald

unread,
Apr 22, 2003, 3:35:30 PM4/22/03
to
That's the idea... :)


"Evertjan." <exjxw.ha...@interxnl.net> wrote in message
news:Xns9365C505...@194.109.133.29...

> Can be the same, it will perhaps screw the mind of the programmer.
>
> --


--
Harald


Fred Serry

unread,
Apr 22, 2003, 5:21:59 PM4/22/03
to

"Harald" <hwgi...@telus.net> schreef in bericht
news:zOepa.19322$4P1.2...@news2.telusplanet.net...

Hi,

They may be the same, but watch out: ID's have to be unique, names do not,
like when you are binding two or more radiobuttons into an array by using
the same name, they are not allowed to have the same ID.

Fred


0 new messages