show and hide text in texbox

jQuery(document).ready(function(){
     jQuery('#search').focus(function(){
 if(this.value=='Search fonts to Download...') { this.value='' }
     });
    jQuery('#search').blur(function(){
 if(this.value=='') { this.value='Search fonts to Download...' }
   });
});

Comments

Popular posts from this blog

HTML5 video loop src change on end play function

Set limit wp_nav_menu

Calculate percentage of a specific element has been scrolled into visible on the screen