2012-05-11 2 views

Répondre

1

Vous pouvez utiliser la fonction de rappel de show:

$("#slide").hide().delay(500).show("drop", { 
    direction: "up" 
}, 500, function() { 
    $("#name").focus(); 
}); 

DEMO:http://jsfiddle.net/L366u/1/

+0

Merci beaucoup! –

+0

Vous êtes les bienvenus :) – VisioN

0

Mise au point dans le rappel:

$("#slide") 
    .hide() 
    .delay(500) 
    .show("drop", { direction: "up" }, 500, function() { 
    $("#name").focus(); 
    }); 

Démo: http://jsfiddle.net/L366u/2/

0

changer comme suit ->

// focus on first input of slide (not working) 
     setTimeout(function(){$("#name").focus();}, 500); 
+1

Pas la meilleure solution. 'show' a un rappel pour cela. – VisioN

Questions connexes