<div id="videos">
<div id="channel_div" style="display: block;">
<div style="color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 12px; width: 555px;" class="firstVideo">
.. trimmed <table here>
</div>
<div style="color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 12px; width: 555px;">
.. trimmed <table here>
</div>
</div>
</div>
I have above snippet and div
s inside channel_div is coming from youtube with styles, with width constraints that breaks the UI.
How can i remove these styles with jquery?
I tried what this question suggested as follows:
$('#channel_div div').removeAttr('style');
also tried this:
$('#channel_div > div').removeAttr('style');
but none of these worked. I just want to add my width as 300px.
Could someone please offer guidance on this.