Click on <div> to focus <input>
Try this with jquery:
$('#yourdiv').click(function() {
$('#yourfield').focus();
});
I don't see a reason why you need JS
to do this when such feature is already provided in HTML
.
<label for="YOURID">The clickable region<label>
<input id="YOURID" type="text" />