I\'m trying to implement a Paypal button with a dynamic value. When I enter, for example, value=\"300.00\", the button works fine.
However, if I do it my way, the button
document.getElementsByName('amount')[0].value = price;
This will find the "button" and set its value to the value of the price variable. I assume that the "button" already is somewhere on the page.
price