heroheman
7/2/2012 - 9:54 AM

jQuery: Expand Searchfield on Hover

jQuery: Expand Searchfield on Hover

$('#search-form #q').on('focus', function(){
                $(this).parents('#search-form').animate({'width' : '300'});
              });
              $('#search-form #q').on('blur', function(){
                $(this).parents('#search-form').animate({'width' : '140'});
              });