jQuery .focus .blur
$('#block-search-0 input[type="text"]').focus(function() {
$('#block-search-0 #edit-submit-1').addClass('button-focus');
});
$('#block-search-0 input[type="text"]').blur(function() {
$('#block-search-0 #edit-submit-1').removeClass('button-focus');
});
Written by Sam Smith
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Related Tags
#jquery
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#