Try using the below piece of code. var grandTotal = some-value; document.getElementsByName("paymentAmount").value = grandTotal;
Alternatively, if you have the property associated with a form then you can write, document.forms.paymentAmount.value = grandTotal;
Joined: Jun 25, 2005
the solution you gave is not working. The value is not getting stored into the form bean. As i when i retrieve the value from the logger only the default value is getting posted. Any idea regarding this, any suggestion. Please help me.