jQuery(function($){ // ADD SEARCH BOX CLEAR/DEFAULT FUNCTIONALITY $('#head form input').focus(function(){ if(this.value == this.defaultValue){ this.value = ''; } }).blur(function(){ if(this.value == ''){ this.value = this.defaultValue; } }); });