Skip to content

Instantly share code, notes, and snippets.

@yamitake
Created March 23, 2012 04:06
Show Gist options
  • Select an option

  • Save yamitake/2166661 to your computer and use it in GitHub Desktop.

Select an option

Save yamitake/2166661 to your computer and use it in GitHub Desktop.
placeholderの値でvalueを上書き
$("input:text , textarea").each(function(){
$(this).val($(this).attr("placeholder"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment