• Post Reply Bookmark Topic Watch Topic
  • New Topic

retaining textbox value after submit page  RSS feed

 
vaibhav thorat
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have text box on my page. text seeks a "searchString" that helps me to carry out the further processing.
After processing i display result of search on same page. Now I want that text box to retain a serachString value,
that user entered before submit.

How can I achieve this ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the value attribute of the text box to set its value.

E.g. <input type="text" name="whatever" value="some value">
 
Sanjeev Kumar Ramineni
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are not using any framework then use JSP beans to achieve this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!