first sorry for my bad English,
I’m having a small problem with .eq() jQuety function.
I have the follow HTML:
<ul>
<li>1</li>
<li>2</li>
<li>2</li>
</ul>
and I want to check on .click if this is the first li the second li or the third li.
if it is the first or the second I want to .hide a div and if it is the third li I want to .show it.
BTW, I know I can use :not function but it does not support IE8 so I can’t you it.
Thanks, Amit
EDIT: thank, I ended up going this:
if($(this).is(':nth-child(3)') == true) {
$("#redB .bundleInfo p").show();
}else {
$("#redB .bundleInfo p").hide();
};
try