I want to change the css of one td through jquery. Please help on this. This is not working for me $("#tdTopMenu").css({ "backgroundColor": "black", "color": "white" });
aspx code:
<table border="0" cellspacing="0" width="100%">
<tr>
<td id = "tdTopMenu" runat = "server" style="width: 100%" class="hideColumn">
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
</td>
</tr>
</table>
Jquery code:
<script type="text/javascript">
$(document).ready(function () {
$("#jMenu").jMenu({
ulWidth: '150',
effects: {
effectSpeedOpen: 300,
effectTypeClose: 'slide'
},
animatedText: false
});
$("#tdTopMenu").css({ "backgroundColor": "black", "color": "white" });
});
</script>