• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to change values of buttons and textfields.

 
Fritz Largosa
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to be able to change the value of my buttons and textfields. If you know how this can be done, please help. Thanks.

------------------my code problem below--------------------------
<input type = "submit" name = "Submit3" value = "Get Data">

<input type="hidden" name = "menuOption" value = ""/>

<%
if(x < 1)
change value of menuOption
else
change value of Submit3 from "Get Data" to "Save Data"
%>
[ September 15, 2005: Message edited by: Fritz Largosa ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not exactly clear what you are trying to accomplish. Are you trying to determine the values to be placed into the HTML before the page gets sent to the browser, or are you trying to change the values on the client side as the result of a user-initiated event?
 
Sravan Kumar
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out if this helps:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!