pratham.gharat200395
New Member
- Messages
- 12
- Reaction score
- 0
- Points
- 0
Hi,
Am trying to change the formatting of a tr (table row) element with jquery.
I have no control over the table as its generated by another javascript.
the table/tr has no css class
each of the alternate tr has a bgcolor attribute specified... I want to remove the value of this attribute so it turns transparent.
i have paced this script under the javascript that generates the table.
But this gives an error in firebug
Am trying to change the formatting of a tr (table row) element with jquery.
I have no control over the table as its generated by another javascript.
the table/tr has no css class
each of the alternate tr has a bgcolor attribute specified... I want to remove the value of this attribute so it turns transparent.
i have paced this script under the javascript that generates the table.
Code:
<script language="JavaScript"> $(document).ready( function() {
$("#postcontent tr").each( function() {
$(this).attr("bgcolor", "");
});
});</script>
But this gives an error in firebug