I am trying to recursively remove all CSS classes from DIVs using jQuery.
this is what I've got so far, but it simply does not work
http://jsfiddle.net/qxy7yotj/4/ (UPDATED)
//UPDATE: another problem is that I have HTML as a JAvascript String and I have to manipulate with it this way
HTML:
<div class="c1">
<div class="c1">
<div class="c3">some text
<div>blah blah</div>
</div>
</div>
</div>
JQuery:
$('div').removeClass();
$('div').each(function( index ) {
$(this).removeClass();
});
$('div').removeClass();is just fine...