trigger javascript function when div:focus code example Example: jquery give control focus $('.class').focus(); $('#name').focus();