javascript - When is there ever an instance in which you can include multiple occurrences of the same element id in a single html document? -


to explain question further, i'll explain i'm trying achieve.

ok, have contact.php page , have been adding @media styles page's referenced stylesheet. contact page has validation javascript running on append 'error' on end of input's id in order display error regarding input field.

i have added hidden form within same fieldset remains hidden until screen size gets reduced width, form gets displayed while original 1 becomes hidden.

with form though, of input id's have stayed same original, thought javascript errors still work same, not showing @ all.

i know having multiple occurrences of same element id in 1 document big no-no, i've never done before, means i've never faced issues in regard.

what i'd know answer is: having input id's occur twice in same document causing javascript errors not show after form displayed while original changed hidden?

after reading question thing observed in suggession if call html element multiple times id not called

becoz id can called once in page value

instead once declare class becoz class can called multiple times, try once

its try , let me know if wrks or else can go alternative.. tia


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -