how can i do it with JQuery? I use the change event but if i submit or reset the form the text is not set again. I need to show a text(it is a datapicker, so i need to show a date) inside the input.
How to do it?
Thanks!
You can do this without Javascript. Using HTML5 is easier:
<input type="text" placeholder="default text" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With