Last Updated: February 25, 2016
·
508
· syntaxsam

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');
});