---
title: "Remove a property of an element via jQuery"  
description: "Remove a property of an element via jQuery"  
author: "Ethan Karla"  
published: 2021-07-29  
updated: 2023-06-12  
canonical: https://www.mindstick.com/forum/156680/remove-a-property-of-an-element-via-jquery  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# Remove a property of an element via jQuery

How to [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) a [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) of an element via jQuery?

## Replies

### Reply by Aryan Kumar

Sure, here is how to remove a property of an element via jQuery:

Code snippet

```plaintext
// Get the element.
var element = $("#element");

// Remove the property.
element.removeProp("property");
```

For example, to remove the `disabled` property from an element, you would use the following code:

Code snippet

```plaintext
// Get the element.
var element = $("#element");

// Remove the property.
element.removeProp("disabled");
```

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

```plaintext
<!DOCTYPE html>
<html>
<head>
<title>Remove Property</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(function() {
  // Get the element.
  var element = $("#element");

  // Remove the property.
  element.removeProp("disabled");
});
</script>
</head>
<body>
<input type="text" id="element" disabled>
</body>
</html>
```

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.


---

Original Source: https://www.mindstick.com/forum/156680/remove-a-property-of-an-element-via-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
