Demo For: Prepopulating Textarea With Hint Using JavaScript
In the textarea below, enter something. Then remove all the text that you entered. Click outside the textarea, anwyhere else on the page. You will see that the default value/ hint is NOT RESTORED.
In the textarea below, enter something. Then remove all the text that you entered. Click outside the textarea, anwyhere else on the page. You will see that the default value/ hint IS RESTORED.