This is done automatically for every browser except Chrome.
I\'m guessing I have to specifically target Chrome.
Any solutio
To further refine Wallace Sidhrée's code sample:
$(function()
{
$('input').focusin(function()
{
input = $(this);
input.data('place-holder-text', input.attr('placeholder'))
input.attr('placeholder', '');
});
$('input').focusout(function()
{
input = $(this);
input.attr('placeholder', input.data('place-holder-text'));
});
})
This ensures that each input stores the correct placeholder text in the data attribute.
See a working example here in jsFiddle.