Jak usunąć CSS z elementu za pomocą jQuery
$('#tag-id').removeAttr('style');
Ankur
$('#tag-id').removeAttr('style');
//removing css with jQuery. i.e: set to default
$( "#myElementID" ).css("background-color", "");//just blank it out
$("#id").css({ 'background-color' : '', 'opacity' : '' });
$(".class").css({ 'background-color' : '', 'opacity' : '' });
//You can remove css by the above.
$("#id .class").css({ 'background-color' : '' });
/*
As mentioned in the jquery documentation:
Setting the value of a style property to an empty string
removes that property from an element
if it has already been directly applied
e.g. $('#mydiv').css('color', '')
*/
$("body").removeAttr("style");
$('.tag-class').removeAttr('style');