I have a javascript function that goes like this:
function change_one()
{
var one = document.getElementById("one").value;
document.getElementById("tag").value=one;
}
It works fine until there are two elements the same id.
I'm using php to fetch stuff from mysql and while it's looping thru, it's echoing input tags that have the same id value.
How I get this javascript code to apply to all of the input tags that have the id equal to "one"?