Into a php page I have 20 text boxes. I want to make a button, using javascript, and when user clicks on it the rest 19 text boxes to take 1st text box's text. I have done something like this but it isn't working... Any idea?
function Throw_PhotoStuff(){
var pcount=1;
while(pcount<20;){
document.getElementById('photo_'+pcount).value = document.getElementById('photo_1').value; pcount++;
}
}
while(pcount<20;)towhile(pcount<20). Thank you all guys!