Home › Forums › CSS › Input Jquery Focus On Page Load Then Do the following › Re: Input Jquery Focus On Page Load Then Do the following
May 24, 2012 at 3:39 pm
#103434
Member
Ok, then try something like:
$('.cf-se-input[autofocus]').trigger('focus').focus(function(){
$(this).parent().addClass('focussed');
}).blur(function(){
$(this).parent().removeClass('focussed');
});