I am getting this error in IE 8,
Invalid argument. jquery.min.js, line 4 character 25149
its been three days i am not able to figure out the problem. Its working fine in every browser except IE8
Here is my code
$(document).ready(function() {
$(function() {
var icons = {
header: "iconClosed",
activeHeader: "iconOpen"
};
$("#accordion").accordion({
collapsible: true,
heightStyle: "content",
icons: icons,
animate: {
duration: 1000
}
});
$('#tabs').tabs();
$('.ui-corners-all, .ui-corners-top').removeClass('ui-corners-all ui-corners-top');
$(".selector").accordion({
clearStyle: true
});
$('#nav li ul').slideDown();
$(this).next().slideToggle();
$('#nav li a').addClass('active');
$(this).addClass('active');
});
jqb_init();
clearInterval(jqb_intInterval);
checkbox_click();
});
Edit your code, remove evident and unnecessary code:
$(function() {
var icons = {
header: "iconClosed",
activeHeader: "iconOpen"
};
$("#accordion").accordion({
collapsible: true,
heightStyle: "content",
icons: icons,
animate: {
duration: 1000
}
});
$('#tabs').tabs();
$('.ui-corners-all, .ui-corners-top').removeClass('ui-corners-all ui-corners-top');
$(".selector").accordion({
clearStyle: true
});
$('#nav li ul').slideDown();
//this is window: window->next->slideToggle? For what? Is it necessary?
//$(this).next().slideToggle();
$('#nav li a').addClass('active');
//this is window: window->addCssClass? Like link? For what? Is it necessary?
//$(this).addClass('active');
jqb_init();
clearInterval(jqb_intInterval);
checkbox_click();
});
[SOLVED]
I just included JavaScript 1.9.1 Used in accordion demo on official accordion page.
Yet this doesn't solve my problem entirely. This cause "Object Expected Error".
Which I am Familiar too. "Object Expected Error" means Script could not be found.
AS including JavaScript 1.9.1 Overriding my own script which was in Master page.
So I move it from Master Page to My Page.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.