I have the following code on the page and it works in FF but not IE. I do not have any access to change this line of html code (like adding an id to better target). Could it be that it doesn’t work cause there is no DOC type declared?
<td align="LEFT" width="12%" bgcolor="#EEEEEE"><b>Code</b></td>
<script type="text/javascript" language="javascript">
$(document).ready(function(){
$('td[width="12%"][align="LEFT"] b').hide();
});
</script>
I was kidding with the above
12comment, but the issue with IE is indeed the attribute casing, and it is case sensitive, make sure yourleftis lower-case (if possible render it in the source this way to begin with) then your check should be:As an aside, consider using CSS classes for things like this:
Then in your stylesheet:
Then in jQuery you can just use:
Much cleaner all around, and a lighter page for the client.