javascript - removeAttr is partly working -


i trying implement removeattr when page loads overide inline css. partly working isn't everything.

here jsfiddle demo problem https://jsfiddle.net/argilmour/efmxol0h/

$(document).ready(function(){    $('.text_default').children().removeattr('style');  }); 

i think need change jquery selector. change javascript :

$('.text_default *').removeattr('style'); 

according jsfiddle, forgot add jquery.

add in html code :

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> 

and in jsfiddle, add library in column on left side of web page.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -