This is done automatically for every browser except Chrome.
I\'m guessing I have to specifically target Chrome.
Any solutio
2018 > JQUERY v.3.3 SOLUTION: Working globaly for all input, textarea with placeholder.
$(function(){
$('input, textarea').on('focus', function(){
if($(this).attr('placeholder')){
window.oldph = $(this).attr('placeholder');
$(this).attr('placeholder', ' ');
};
});
$('input, textarea').on('blur', function(){
if($(this).attr('placeholder')){
$(this).attr('placeholder', window.oldph);
};
});
});