N
nntp
Should I use both name and id
<div name="abc" id="abc"> for using getElementById in NS?
<div name="abc" id="abc"> for using getElementById in NS?
Should I use both name and id
<div name="abc" id="abc"> for using getElementById in NS?
Should I use both name and id
<div name="abc" id="abc"> for using getElementById in NS?
nntp said:Should I use both name and id
<div name="abc" id="abc"> for using getElementById in NS?
nntp said:I saw it somewhere saying if possible we should use both name and id.
I don't remember if it is about getElementById or something like
frams[blahblah], links, images, forms....
It was saying NS could not find it if we only use name...
I really don't recall it. Anyone has a reference about it?
If i use both name and id, will I get some error, then? such as the same obj
is found twice, or name attribut is not supported?...
Lee said:Form elements should also have a name, if their value is being
submitted.
David said:No they shouldn't. Form _controls_ should.
David said:No they shouldn't. Form _controls_ should.
I'm sure he was referring to the members of the forms.elements[] collection,
which, although somewhat misnamed, are a form's controls.
Grant Wagner said:
David said:Lee wrote:
Form elements should also have a name, if their value is being
submitted.
No they shouldn't. Form _controls_ should.
I'm sure he was referring to the members of the forms.elements[]
collection, which, although somewhat misnamed, are a form's controls.
Yes, except that I don't consider them to be misnamed.
They are the elements that comprise the form.
Michael said:determine which, but I think it's a lot simpler to avoid it altogether by
using "form element" to refer to a FORM, and "form controls" to refer to
INPUT, SELECT, and TEXTAREA elements.
No-one cares. The "name" is (and always was) pretty much irrelevant.nntp said:Should I use both name and id
<div name="abc" id="abc"> for using getElementById in NS?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.