Hey all,
im using this tiny little function:
function switchState(id) {
$("#"+id).toggleClass('full');
}
just to switch the className of a div. It adds "full" to the class or removes "full".
My current problem is, that this is not working in IE7. Yes, i know.
IE8 and above, FF, Safari are all working fine of course. I just need IE7 to get it working too.
I know there are incompatibilities regarding "class" and "className" but i just havent found a way to workaround this yet. Is "toggleClass" just IE7-Incompatible? Or am i doing something wrong?
There are 10 divs, which all are about 85px high. onclick on a button in a div the class full gets added to the div which makes it about 400px high. and snaps back to 85px height if you click again.
Using this jquery toggleClass function was the sexiest way so far. I tried around several different ways to switch the classname but as said, none of them worked in ie7.
Any help is appreciated.
Regards,
AgentS