You are here

Blog

Jquery Search Text - Remove & Replace

$('.search-text').focus(function(){ 
    if($(this).attr("value") == "Search") $(this).attr("value", ""); 
}); 
$('.search-text').blur(function(){ 
if($(this).attr("value") == "") $(this).attr("value", "Search"); 
});
Drupal
Search
Jquery

Need A Developer? Contact Us