Show/Hide button for a search field
Chaining is the power way in jQuery:



var button = $("#submit-button");
$("#search").focus(function(){
    button.slideDown("slow");
}).blur(function(){
   button.slideUp("slow");
});