Has anyone ran into an issue w/ the 'setAttribute' or jQuery's 'addClass' in IE?
All I'm trying to do is onclick change the class.
javascript attempt:
function expFolder()
{
var fold = document.getElementById("folder1");
fold.setAttribute("class","folderExpand");
document.getElementById("folder1").setAttribute("class","folderExpand");
}
jQuery attempt:
$("#toggleClass").click(function()
{
$("#folder1").addClass("folderExpand");
});
Tested fine in:
- chrome
- firefox
- opera
- safari
I appreciate any insight.