Determine if a string contains any specified values
<p>Is it possible to do something like the following in jQuery:</p>

<pre><code>if($('UploadField').val().contains('.gif','.jpeg','.jpg','.png'))
{

}
</code></pre>

<p>...checking for an array of values?</p>
