/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('div.hint').children('ul').children('li').hide(); $('p.comments').click(function(){ var trgtUL = $(this).next('div.hint').children('ul'); function fadeInOut(i) { trgtUL.children('li').eq(i).fadeIn(3000).fadeOut(3000, function() { if ($(this).next().is('li')) { fadeInOut(i + 1); } else { return false; } }); } fadeInOut(0); });