I have an external stylesheet that is applying styles to my TD elements. I would like to move those styles to the DIV tags (content wrappers) that are within the TD tags.
The CSS:
td { padding: 5px }
div { }
The HTML:
<td>
<div>
Apply the TD styles to this DIV (instead of the TD).
</div>
</td>
The JavaScript:
$(document).ready(function(){
$('tr').children('td').each(function(){
//move the td styles to div
});
});
How can I achieve this?