Internet Explorer issue
Internet Explorer issue
I've read in many places that IE has an issue with the 'attr', but I can't figure out a way around it. I am extremely new to jQuery and can only do small bits. I can't even do javascript (yes I am pathetic
)
Basically, I want to remove the cellspacing attribute to all tables on the page, and then add it back. It's a forum software where the HTML cannot be directly edited, and lots want to be able to disable the 0 cellspacing and have it set to 1 for various reasons.
As usual, it works fine in Firefox etc, but IE spits it out:
-
<script type="text/javascript">
//<![CDATA[
$('table').removeAttr('cellspacing');
$('table').attr("cellspacing","2");
//]]>
</script>
I'd *really* appreciate some help on this
I'm not fussy about when either.