mathiasbynens/jquery-placeholder — Issue #50: Placeholder class not added when page refreshed
Author: travisp
Created: 2012-02-03 19:58:30+00:00
State: open

If the page is able to refresh without destroying form input, then the jquery-placeholder plugin thinks that the original placeholder text is text entered by the user, and so it doesn't add the placeholder class.

This is not seen on the demo page, because when text is entered into the form on the demo page, and the refresh button is pressed, the entered text is lost. Most browsers will keep form data on most web pages after a refresh (unless the headers disable any caching).