I am facing an issue with a jQuery script that I have created to change the background colors of rows in a large table. Unfortunately, it seems to be malfunctioning on Internet Explorer versions 6 through 9.
Below is the snippet of code I am using:
<script type="text/javascript" >
$(document).ready(function() {
// Changing the background colors of certain rows in the table
$('tr[bgcolor=#9BB9FB]').attr('bgcolor','#E6B8B7');
$('tr[bgcolor=#B9CBFD]').attr('bgcolor','#F2DCDB');
$('tr[bgcolor=#B6D3FC]').attr('bgcolor','#F2DCDB');
$('tr[bgcolor=#015B91]').attr('bgcolor','#E6B8B7');
$('tr[bgcolor=#8EBCFD]').attr('bgcolor','#B5B5B5');
});
</script>