jquery give control focus

JavaScript
$('.class').focus();
$('#name').focus();
Source

Also in JavaScript: