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 1:10 pm
#103419
jamygolden
Member
$('.cf-se-input[autofocus]').trigger('focus').focus(function(){
$('#searchput').addClass('cfse_b');
});
@elneco is right though. Why not use CSS to do this?
.cf-se-input:focus { border: 1px solid blue; }