Ho un pulsante che aggiungerà mostrare un modulo sulla pagina. come posso spostare lo stato attivo sul primo campo del modulo quando viene cliccato quel pulsante?Sposta lo stato attivo su un campo particolare
semplice esempio:
HTML:
<form style="display:none;" id="newForm">
<input type="text" id="firstField">
</form>
<input type="button" id="showForm" value="add new">
jQuery:
$("#showForm").click(function(){
$("#newForm").show();
//move focus??
});