This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.