Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make it blank?

 
Debashree Halder
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to refresh all the text fields,textareas, checkboxes in jsp page?
Initially they should be blank.....only after selecting from some drop down combo box data is being populated in all the fields. But before even selecting something it is showing some data....which is not reqd.How I make it blank initially.

I am using this kind of format for data populating.

%
=invBean.getDaysAllotment()
%
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the data being set by your function when the page loads or is it being filled in by autocomplete form the browser. If it is autocomplete, then you can disable it by placeing autocomplete="off" in the form tag.

Eric
 
Daniel Prene
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's also a jsp forum if you're iterested
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do a 'View source' on the page after it loads. If the form elements have value attributes to set the data into the elements, then this is a server-side issue.
 
Debashree Halder
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any functions like refresh() or rest() in JavaScript calling which I can reset all the fields of the form?

Please let me know.

Thanks!
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can call reset() on the form itself, but it will just reset the inputs to what they were when the page was received from the server.

-Yuriy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic