There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.Close
Processing...
This may take a few seconds.

remove-property

Syntax

remove-property: (style property) [every (time)] [after (time)][, (property)...];

This command removes a specifed CSS style property from the target selector.

There is no JavaScript command (at this writing) to remove a property from an element. Properties tend to be dynamic in elements and this command has nothing to do with elements themselves - so it is only used to remove a CSS style from an element.

But you can change the dynamic property of an element if this command is not what you want. See the "set-property" command to see how you can change the dynamic property of an element.

 

For some of the difference between properties and attributes and recommended use, see here:

https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/removeProperty

https://forum.jquery.com/topic/what-is-the-difference-between-removeattr-and-removeprop

https://www.joji.me/en-us/blog/html-attribute-vs-dom-property/

remove-property