title: Javascript / jQuery : Select class name that contains word
body: <p>How can I do this:</p>
  
  <p>I have object that has multiple classes. My goal is to get class name that has string(e.g. 'toaster') in it (or starting with that string) and put it in variable.Note that I know only the beggining of class name and I need to get whole.</p>
  
  <p>e.g. <code>&lt;div class="writer quite-good toaster-maker"&gt;&lt;/div&gt;</code></p>
  
  <p>I have this div as my jQuery object, I only need to put class name <code>toaster-maker</code> in variable <code>className</code>;</p>
  
  <p>Again I don't need to select object! I only need to put class name in variable.</p>