J'utilise ce qui suit,Comment obtenir une balise span à l'intérieur d'une div dans jQuery et assigner un texte?
<div id='message' style="display: none;">
<span></span>
<a href="#" class="close-notify">X</a>
</div>
Maintenant, je veux trouver la durée à l'intérieur du div et attribuer un texte à lui ...
function Errormessage(txt) {
$("#message").fadeIn("slow");
// find the span inside the div and assign a text
$("#message a.close-notify").click(function() {
$("#message").fadeOut("slow");
});
}
@macek, désolé pour l'édition. – rahul
@rahul, j'étais un peu confus. Pas de soucis :) –