jquery .attr() not working in IE7. Any work around to get the class of the element?
<p>I am having this code to check if the element has the certain class: </p>

<pre><code>var p3div = $("#portlet1 #showhide");
            if (p3div.attr('class').indexOf('ui-icon-plusthick') &gt; 0) {
                //do something here.
            }
</code></pre>

<p>However in IE7 .attr() is not supported and this code will throw an error. Is there any other way to get the class of an element by not using the attr() method?</p>

<p>Thanks,</p>
