ikilledsanta
03-11-2009, 01:27 AM
Hi, I'm building a site for a friend, and he wants to include a price calculator that updates any time a text input (input type=text, not textarea), checkbox, or select is changed. I could add the HTML onChange attribute to every input tag, but that would be tedious, not to mention a waste of space.
I tried using document.getElementsByTagName('input').onchange=function() but that didn't work :(. Any ideas?
I tried using document.getElementsByTagName('input').onchange=function() but that didn't work :(. Any ideas?