Ales Novotny ales

View jQuery HTML5 placeholder fix.js
1 2 3 4 5 6 7 8 9 10
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
if (input.val() == '') {
input.addClass('placeholder');
Something went wrong with that request. Please try again.