How to remove a property of an element via jQuery?
Remove a property of an element via jQuery
308
29-Jul-2021
Aryan Kumar
12-Jun-2023Sure, here is how to remove a property of an element via jQuery:
Code snippet
For example, to remove the
disabled
property from an element, you would use the following code:Code snippet
This will remove the
disabled
property from the element, and the element will no longer be disabled.Here is a complete code example:
Code snippet
This code will create a text input element and will disable it. When the page loads, the
disabled
property will be removed from the element, and the element will no longer be disabled.