Vishal Gupta
0
Q:

jquery remove css

$("#id").css({ 'background-color' : '', 'opacity' : '' });
$(".class").css({ 'background-color' : '', 'opacity' : '' });
//You can remove css by the above.
2
$("#id .class").css({ 'background-color' : '' });

// As mentioned in the jquery documentation:
	// Setting the value of a style property to an empty string 
		//e.g. $('#mydiv').css('color', '') 
	// removes that property from an element if it has already been directly applied
0
  $("body").removeAttr("style");
0
$('#tag-id').removeAttr('style');
0
$('.tag-class').removeAttr('style');
0

New to Communities?

Join the community