$(function(){ $('input#q').focus(function(){ $(this).animate({width: "300"}, 'slow'); }) $('input#q').blur(function(){ $(this).animate({width: "180"}, 'slow'); }) });
Sign up