I have several text inputs in my page. They have different classes added to them. Depending on the class they each have, I add an onchange event handler. Everything worked OK, until they all shared one common class, then I add common onchange handler again. The first oen gets overwritten.
Is there a way to add another handler and not overwrite the precious one?
They should not get overwritten.
You should be able to do:
And you should see both alerts
See fiddle: http://jsfiddle.net/maniator/JEyTM/