Issue running ddlevelsmenu in hosting environment
I've tested the menu in my environment without any issue. However, in hosting environment i am getting the following error:
Unable to get value of the property 'className': object is null or undefined
I have included the function when error occurs:
css:function(el, targetclass, action){
var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "ig")
if (action=="check")
return needle.test(el.className)
else if (action=="remove")
el.className=el.className.replace(needle, "") <--- ISSUE
else if (action=="add" && !needle.test(el.className))
el.className+=" "+targetclass
},
Any Idea as what may cause this? Thanks
|