Get other classes from an element with Jquery
<p>I am working on a small bit of script that will allow for easy and flexible creation of buttons.</p>

<p>My buttons are made of three parts, a left, a right and a streched middle piece. There are three different sizes and three different colours of each.</p>

<p>I have written the code that resizes the button to fit the text. Now I am looking to add the ability to easily set the colour and size.</p>

<p>I was thinking of using three classes something like <code>&lt;div class="button blue big"&gt;</code> My script already loops through the button classes using each. Now I need to find out what other classes are set and adjust the pictures and dimentions used to fit. </p>

<p>So how can I find out what other class selectors an element has? </p>

<p>Also I am fairly new to jquery/javascript so I am wondering if storing the design as class selectors is the best way.</p>
