Is it possible to remove all classes of an element that are not equal to a certain string,
for example, if I have the following HTML
<a href="" class="status pending"></a>
<a href="" class="status successful"></a>
<a href="" class="status unsuccessful"></a>
Could I remove all the classes that are not equal to status?