-1

i have 6 textfields, if we user write something, if he felt written something wrong and want to reset page, I dont want to reload that page again just want to reset those fields as blank through ajax command, can anyone help?

Karan
  • 11
  • 3

1 Answers1

0

You do not need AJAX or even JavaScript, just use the <s:reset/> tag / button.

Aleksandr M
  • 24,264
  • 12
  • 69
  • 143
  • can u tell me how to use it here? – Karan Mar 20 '14 at 17:12
  • Add as the last tag in your form. You can specify a theme and most of the other normal UI tag parameters to help make sure that the button appears uniformly in your input form. – Wes Wannemacher Mar 20 '14 at 18:28