How can I remove all classes starting with a prefix
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2644299/jquery-removeclass-wildcard">JQuery removeClass wildcard</a><br>
  <a href="http://stackoverflow.com/questions/6055355/jquery-select-an-element-that-the-class-starts-with">jQuery - Select an element that the class starts with</a>  </p>
</blockquote>



<p>I have some divs that that belong to zone (a div may have class "zoneA", another div may have class "zoneB", etc.). I want to be able to select multiple divs of that kind, and set a new class to them. </p>

<p>So I would like to do something like:</p>

<p><code>$(".selected-divs").removeClass("zone*").addClass(".zone-new")</code></p>

<p>How can I remove all classes in this maner?</p>
