Celui-ci a été perplexe. J'ajoute du code HTML à un élément, puis je veux l'intégrer. Cependant, lorsqu'il est implémenté, il ne se décline pas. Il se bloque immédiatement. La syntaxe/l'ordre semble correct. Quelqu'un voit quelque chose de mal avec ma logique:jQuery fadeIn() ne s'estompe pas dans
$('span.mySpan')
// fade out the empty span so it's hidden
.fadeOut('fast',function(){
$(this)
.html($restoreLink) // add the HTML to the hidden span
.fadeIn('slow') // now fade it in
})
Non; sinon, il n'apparaîtrait pas du tout. – SLaks
Ahh ... c'est vrai. –