foucs on input field on click of button jquery code example Example: jquery give control focus $('.class').focus(); $('#name').focus();