jquery element same class
<p>I search a simple/clean way to get every element with the same classes than a selected element.</p>

<p>something like that (not working)</p>

<pre><code>var myElement = $("#elementId");

var listSameClass = $.hasClass(myElement.attr("class"));
</code></pre>
