Question: I have the following code.

```
$(document).ready(function(){
 $('#listing img')
 .attr('width', 250)
 .removeAttr('height').removeAttr('align').removeAttr('style')
 .wrap('<p />');
});

```

Is there a more efficient way of removing multiple attributes?

Answer: 
Yes :

```
.removeAttr('height align style')

```

From [the documentation](http://api.jquery.com/removeAttr/) :

> 
> as of version 1.7, it can be a space-separated list of attributes.
> 
> 
>
Yes, you can remove it in that way: 

```
$('#listing img').removeAttr('height align style');

```

you can also add those attributes as follows:

```
$('#listing img').attr({ height: "20", align: left }).css({ color: red, text-align: center });

```