I want to set all my css to null with the use of jQuery.
I know you can do it like
$("[class^=col-]").css('width', '');
$("[class^=col-]").css('right', '');
$("[class^=col-]").css('margin', '');
$("[class^=col-]").css('position', '');
but is it possible to do it in one command, like:
$("[class^=col-]").css('');
Edit: i have looked in the post above and saw the answer.
By removing the style atrribute it works perfectly $("[class^=col-]").removeAttr("style")
No comments:
Post a Comment