Announcement Announcement Module
Collapse
No announcement yet.
Clearing the form values Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Clearing the form values

    hi,

    i had used value="reset" for the clear button. but it is storing the values in the form after the succesful signup also.
    if i click on clear button before submission, it is clearing the fields. but, i am unable to clear the values in the form after the successful signup in my appli .
    if i click on back button, the values displaying there itself. if i click on clear button. it is not clearing.

    i have 2 clear the values in client side only.

    Help needed & tat wil b cheerful.

  • #2
    Chech the html reference. A reset button resets to the PREVIOUS state, so if that was a state with filled fields the fields will return to the old values, they won't clear.

    Comment


    • #3
      Originally posted by Marten Deinum View Post
      Chech the html reference. A reset button resets to the PREVIOUS state, so if that was a state with filled fields the fields will return to the old values, they won't clear.
      yes, u r rite. i have used
      <input type="reset" value="<spring:message code="clear"/>" />


      i had tried the other way by creating javascript,

      function clear() {
      {
      document.form1.textbox.value = ""
      }
      }


      <input type="button" onClick="javascript:clear()" value="<spring:message code="clear"/>" />

      but it is also not working fine.

      can u plz help me in this clearing fields.

      Comment

      Working...
      X