<!DOCTYPE html>
<html>
<head>
<title>jQuery :focus Selector</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("input").click(function(){
$('this').focus();
$("input:focus").css('background-color', 'yellow');
});
});
</script>
</head>
<body>
<h1>Article heading</h1>
<div>
Name <input type="text" name="name" />
</div>
</body>
</html>