How to remove width attribute which is under style attribute using jQuery?

<div class="views" style="position: relative; width: 421px; height: 15px; overflow: hidden;">
TEST TEXT
</div>

How to remove width attribute which is under style attribute using jQuery?

I know removeAttr("width");

But it will not work here because width is child of style attribute


You could use:

.css('width', 'auto')

As easy as

$('div.views').css('width', '');