Given an input that looks like this:
<input id="myInput" type="text" value="" />
You can automatically translate your link into this text field by specifying the href attribute on the hash address:
<a id="myLink" href="#myInput">Show me the textbox!</a>
And a wire in javascript (with jQuery in this example) to focus on the text field when the link is clicked:
$(document).ready(function() { $("#myLink").click(function(){ $("#myInput").focus(); }); });
source share