Return to Snippet

Revision: 35681
at November 12, 2010 00:20 by touffies


Initial Code
$(function(){
            $("input[type*='text'][title]")
            .bind("focus",function(){ if(this.value==this.title){ this.value=""; } })
            .bind("blur",function(){ if(this.value==""){ this.value=this.title; } });
        });

Initial URL


Initial Description
On focus, remove text inside input containing a title, put it back if it has not change

Initial Title
Input Placeholder

Initial Tags
jquery

Initial Language
jQuery