Okay,
Basicly I want to style multiple input fields with a new border, background ect.
However when I use a class they do not change in FF, when I give them all the same ID they do change in FF. I am building a web application, however all elements are accessed through javascript references and I do not access anything via getElementById, so from my point I do not need them to have different ID's.
But I was wondering if it breaks or damages the DOM at all? is it bad practice? and does this make it invalid xhtml?
Thanks, Josh
Basicly I want to style multiple input fields with a new border, background ect.
However when I use a class they do not change in FF, when I give them all the same ID they do change in FF. I am building a web application, however all elements are accessed through javascript references and I do not access anything via getElementById, so from my point I do not need them to have different ID's.
But I was wondering if it breaks or damages the DOM at all? is it bad practice? and does this make it invalid xhtml?
Thanks, Josh
Comment