I have a button only my page that will jump the user to a contact form below and I want to highlight the first field in the form briefly then have it animate back to the preset focus background color. Seems that using the .css()
method doesn't allow delays and also seems that .animate()
doesn't work on changing attributes of a form field. Any tips?
$(document).ready(function() {
$('#class_sign_up_btn, #work_with_brian_btn').click(function() {
$('#name').focus();
$('#name').css('background','#E3BD00').delay(500).animate( {'background':'grey'}, 300);
});
});