jQuery select and apply style -
i have table lot of td cells. each of cells might have 1 or more divs inside. need take first inner div's inline style , move it parent td's style.
how can done in jquery?
this simple:
$('td div').each(function() { $(this).closest('td').attr('style', $(this).attr('style')); });
Comments
Post a Comment