#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    13
    Rep Power
    0

    How to add Clear button in form.


    I make form all the things are working but clear button is not working
  2. #2
  3. The Queen of Typos
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Sep 2004
    Location
    San Clemente
    Posts
    1,471
    Rep Power
    190
    Hi there Wilson, welcome to the forums!

    In the future it's really helpful if you can post code and something more descriptive other than "it's not working".

    Your question today is simple though, the following code should work, just replace your existing clear button with the following:

    Code:
    <input type="reset" value="Reset" />
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    13
    Rep Power
    0
    Thanks for your answer.
  6. #4
  7. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,124
    Rep Power
    4304
    Welcome to DevShed Forums, wilson230.

    I recommend that you (and anyone else who reads this post) read this: Reset / Cancel Button Considered Harmful
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    13
    Rep Power
    0
    I see your link I agree with you Kravvitz but sometimes Reset button is good for users.

IMN logo majestic logo threadwatch logo seochat tools logo