Hi,
i have this function :
jQuery.fn.getParent = function(num) {
var last = this[0];
for (var i = 0; i < num; i++) {
last = last.parentNode;
}
return jQuery(last);
};
and this html :
<div class="statuscontainer">
<div class="title">
Title of div here
</div>
blah blah blah blah <br>
<a onclick="$(this).getParent(4).fadeTo("slow",.3);">fade only this div</a>
</div>
<div class="statuscontainer">
<div class="title">
Title of div here
</div>
blah blah blah blah <br>
<a onclick="$(this).getParent(4).fadeTo("slow",.3);">fade only this div</a>
</div>
what i want, that each link should fade it's main statuscontainer div and not all other divs, that's done using jQuery GetParent.
that's works great in firefox/chrome/safari, but in IE 7/8 , only the blah blah blah and the link are faded and not the entire "statuscontainer".
What do you suggest ?
Thanks