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").show().focus(); document.getElementById('divID').focus();