It works for those elements which has atleat one child
Code :
<table border="1">
<tr>
<td>Value 1</td>
<td></td>
</tr>
<tr>
<td>Value 2</td>
<td></td>
</tr>
</table>
<style type="text/css">
td
{
width: 40px;
background: red;
}
</style>
<script type="text/javascript">
$(document).ready(function () {
$("td:parent").fadeTo(1500,0.33);
});
</script>
Done :)
Code :
<table border="1">
<tr>
<td>Value 1</td>
<td></td>
</tr>
<tr>
<td>Value 2</td>
<td></td>
</tr>
</table>
<style type="text/css">
td
{
width: 40px;
background: red;
}
</style>
<script type="text/javascript">
$(document).ready(function () {
$("td:parent").fadeTo(1500,0.33);
});
</script>
Done :)
Comments
Post a Comment