0
Q:

jquery remove style

// OPTION 1:

el.style.removeProperty('zoom');

// OPTION 2:

el.style.zoom = "";
1
//removing css with jQuery. i.e: set to default 
$( "#myElementID" ).css("background-color", "");//just blank it out
0
$("abc").css({"<PROPERTY>": ""});
0
$("#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

New to Communities?

Join the community