This cannot be right.
I have two forms on one page. Both forms have an input element with the id="lastname". When I use a javascript to access theese input elements, I have to use
document.forms["form1"]["lastname"]
In IE, Firefox, and Opera, this works fine, because the two input elements are inside two different forms.
BUT: It does not work fine in safari.
What I do not understand is that Safari would not allow two elements with the same id in two DIFFERENT forms.
I have two forms on one page. Both forms have an input element with the id="lastname". When I use a javascript to access theese input elements, I have to use
document.forms["form1"]["lastname"]
In IE, Firefox, and Opera, this works fine, because the two input elements are inside two different forms.
BUT: It does not work fine in safari.
What I do not understand is that Safari would not allow two elements with the same id in two DIFFERENT forms.
Comment