I have is a hidden div. When the button is clicked, the div slides down with an input field. How do I make this input field autofocus as soon as the div slides down? Thanks.
$("#divID").focus();
or without jQuery:
document.getElementById('divID').focus();