title: Adding another class to an element, but as the first class
body: <p>I want to add another class to a element, but some of those elements already have an existing class, however the class I am adding I want it to be the <code>first class</code> added in the class field and don't want to append it; because from what I know, in general, rules in the last listed class will overwrite rules in the former classes, correct!?</p>
  
  <p>I know of a jquery method as below..</p>
  
  <pre><code>$("p").addClass("myClass");
  </code></pre>
  
  <p>However from what I understand this just appends the class and you can't choose where to put it.</p>
  
  <p>Is there any way to do this easily or will I have to start removing classes and re-adding them?</p>