Tuesday, 20 August 2013

jQuery .show not working in .each

jQuery .show not working in .each

Here is my jquery code.I'm trying to show.Here is my code
$('#divTalentAgent a').each(function () {
$(this).show();
});
The above code doesn't work.But if i modify it as below
$('#divTalentAgent a').each(function () {
alert('hi');
$(this).show();
});
It works..

No comments:

Post a Comment