HTML5 placeholder disappears on focus
问题 Is there a freely available jQuery plugin that changes placeholder behavior to match HTML5 spec? Before Focus On Focus Good (Safari) On Focus Bad (Chrome, Firefox) You can what your browser does with this simple fiddle. HTML5 draft spec says: User agents should present this hint to the user, after having stripped line breaks from it, when the element\'s value is the empty string and/or the control is not focused (e.g. by displaying it inside a blank unfocused control and hiding it otherwise).