Question: Is it possible using jQuery to remove any styles applied to an HTML not via CSS or the style attribute, for example here:

```
<table width="100%" border="0" cellSpacing="0" cellPadding="0">

```

I'd like to remove width, border, cellSpacing & cellPadding.

I've seen this post here: [Use jQuery to remove an inline style](https://stackoverflow.com/questions/8790795/use-jquery-to-remove-an-inline-style) but it only does that for a specific attribute plus it seems to apply it using the style attribute and not remove inline ones.

EDIT: I don't want to remove anything that has been applied using the style attribute I want to remove anything that hasn't been applied using it
Thanks

Answer: 
Previous answers are stating exactly what you **didn't** want.

**not via CSS or the style attribute. I'd like to remove width, border, cellSpacing & cellPadding.**

```
$('*').removeAttr('width border cellSpacing cellPadding'); // etc

```
you can use

```
$('#myElement').removeProp('style');

```

[removeProp](http://api.jquery.com/removeProp/)

**Updated after OP updated question**

[**DEMO**](http://jsfiddle.net/cse_tushar/bAcSF/)

```
$('#myElement').removeAttr('border');

```

[**DEMO**](http://jsfiddle.net/cse_tushar/bAcSF/1)

```
$('#myElement').removeAttr('border width cellSpacing cellPadding');

```

If you want to remove attributes from all elements 

`$('*').removeAttr('border width cellSpacing cellPadding');` 

and list attributes to be removed inside `removeAttr('')`