> 
> **Possible Duplicate:**  
> 
> [How to remove all CSS classes using jQuery?](https://stackoverflow.com/questions/1424981/how-to-remove-all-css-classes-using-jquery) 
> 
> 
> 

I have the following:

```
<div id="abc">
</div>

```

Inside that div there can be one only of the following:

```
<p class="message">
<p class="message error"></p>
<p class="message warning"></p>
<p class="message success"></p>
<p class="message loading"></p>

```

Is there a way that I can find and remove all classes from the `<p>` element?
['https://Stackoverflow.com/questions/12523146', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']
You can do this:

```
$("#abc p").attr("class", "");

```

or 

```
$("#abc p").removeClass();

```
> 
> If no class names are specified in the parameter, all classes will be removed.
> 
> 
> 

[Source](http://api.jquery.com/removeClass/).

Use `removeClass()` with no arguments.