How can I check string  starts with using javascript / jQuery?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9425533/how-can-i-check-the-start-of-a-string-with-jquery">How can I check the start of a string with jQuery?</a>  </p>
</blockquote>



<p>I have the following:</p>

<pre><code>if ($(this).data('action') == "Editing" || $(this).data('action') == "Create") 
{
  // how to Check  ? 
}
</code></pre>

<p>How can I check for where Editing or Create are just the first words and not the complete string?</p>
