2012-12-18, 06:28 PM
I've got a link to an anchor that corresponds to the quick reply box on my showthread page:
This bit works just fine and it scrolls down to the quick reply box. My question is how would I autofocus the cursor inside the quick reply box, AFTER the user clicks on the link?
I know how to autofocus a form field when the page is loaded, but no idea how to do it onclick.
Thanks!
Quote:<a class="bigbutton" href="#quickreply">Reply to this discussion</a>
This bit works just fine and it scrolls down to the quick reply box. My question is how would I autofocus the cursor inside the quick reply box, AFTER the user clicks on the link?
I know how to autofocus a form field when the page is loaded, but no idea how to do it onclick.
Thanks!