javascript input button question

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
REwingUK
Forum Commoner
Posts: 26
Joined: Wed Jul 29, 2009 8:46 pm

javascript input button question

Post by REwingUK »

Hi guys,

I'm trying to add a php string to some javascript:

document.getElementById("button").value = mygetrequest.responseText;

basically there are a load of buttons on one page. So i need to add a value at the end of button. Basically the ID of each row so button<? echo $row['ID']; ?> but i'm not too sure how i would do this in javascript.

Any help


Thanks in advance
Post Reply