Match method doesnt work in a user function
<p>I have this function:</p>

<pre><code>function checkMobile(){
    return $('#js-mobile').val().trim().match(/^09[0-9]{9}$/);
}
</code></pre>

<p>And this in-line code:</p>

<pre><code> $('#js-mobile').val().trim().match(/^09[0-9]{9}$/);
</code></pre>

<p>I dont know why this code doesnt work in my function but work without function!</p>

<p>See the Attachment</p>

<p><img src="http://i.stack.imgur.com/ER8yW.png" alt="firefox - firebug console"></p>
