jquery check for class if statement not working
<p>I would like to add a simple if statement to my scaling function, to check for the class ".pic"</p>

<p>but it doesn't seem to work (it does work fine if I remove the if statement part, but then every element on the page scales when clicked)</p>

<pre><code>$(document).ready(function(){

$(this).click(function(event){
    var myTarget = event.target;
    if (myTarget.is('.pic') {
        $(myTarget).animate({ 
        width: "75%"
        }, 650 );
    }

});
</code></pre>

<p>});</p>

<p>edit: since I'm still stuck on this one, after the answer below, here is a bit of the html, maybe this is the problem? </p>

<pre><code>&lt;div class=myImages id=group001&gt;
&lt;img class=pic id=img001 src="../images/img001.jpg"&gt;
&lt;div class=text id=des001&gt;
mobile sequence 
&lt;/div&gt;
&lt;/div&gt;
</code></pre>
