jQuery - chaining a native function
<p>Can anyone explain why I can chain a native JavaScript function to a jQuery function like so:</p>

<pre><code>$('#search').val().replace("00:00:00", "")
</code></pre>

<p>In this case, replace is the native JavaScript function.</p>

<p><a href="http://www.w3schools.com/jsref/jsref_replace.asp" rel="nofollow">http://www.w3schools.com/jsref/jsref_replace.asp</a></p>

<p>Thanks</p>
