Languages
[Edit]
EN

HTML - restore input default value

0 points
Created by:
Eshaal-Wilkinson
774

In this article, we would like to show you how to restore input default value in HTML.

Quick solution:

 

Practical example

Edit

To restore the input element's default value, we need to:

  1. set the default value using the input element's value attribute,
  2. create reset input that restores the default value of all inputs in the form.

References

Edit

Alternative titles

  1. HTML - reset input to specific values
  2. HTML - restore input default value on click
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join