title: jQuery get class of an element which has 2 classes
body: <pre><code>&lt;button class="update vacancy-submit" tabindex="2"&gt;Save&lt;/button&gt;
  
  $('.vacancy-submit').click(function(){
      var type = $(this).attr('class').not('.vacancy-submit');
      console.log(type);
  });
  </code></pre>
  
  <p>I'm trying to get the class for button into a variable which should say <code>update</code> and not <code>update vacancy-submit</code></p>