Reputation: 1
It's work fine on chrome or firefox but it's not working on ie8
a(".contextual-help-tabs").delegate("a","click focus",function(d){
var c=a(this),b;
d.preventDefault();
if(c.is(".active a")){
return false
}
a(".contextual-help-tabs .active").removeClass("active");
c.parent("li").addClass("active");
b=a(c.attr("href"));
a(".help-tab-content").not(b).removeClass("active").hide();
b.addClass("active").show()
});
Upvotes: 0
Views: 873
Reputation: 78545
From the docs:
As of jQuery 1.7, .delegate() has been superseded by the .on() method
Although .delegate
is still there and should work, you should use .on
instead:
a(".contextual-help-tabs").on("click focus", "a", function(d) {
...
});
Upvotes: 1