Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. RatzeR revised this gist Oct 1, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Setze bei focusout das Placeholder Attribut als Value
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    $("input").on("focusout", function(){
    var val = $(this).attr("placeholder");
    var val = $(this).attr("placeholder");
    $(this).attr("value", val);
    });
  2. RatzeR created this gist Oct 1, 2013.
    4 changes: 4 additions & 0 deletions Setze bei focusout das Placeholder Attribut als Value
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    $("input").on("focusout", function(){
    var val = $(this).attr("placeholder");
    $(this).attr("value", val);
    });