Skip to content

Instantly share code, notes, and snippets.

$("input").on("focus", function(){
var elem = $(this).attr("value");
$(this).attr("value", "");
});
$("input").each(function(){
var val = $(this).attr("placeholder");
$(this).attr("value", val);
});