How can I check if a javascript variable contains a string or not?
<p>I have a variable: $form.attr('action') that contains one of the following:</p>

<pre><code>action="/Administration/Contents/JsonCreate"
action="/Administration/Contents/JsonEdit"
action="/Administration/Contents/JsonDelete"
</code></pre>

<p>How can I with an if () statement check to see if it contains the word "JsonEdit" ?</p>
