jquery v javascript
<p>I have a function which I need to appear within a jQuery <code>$(document).ready(function() {}</code> - I am <a href="http://www.thefreedictionary.com/au+fait" rel="nofollow">au fait</a> with javascript but not really worked with jQuery. How can I jQuerify this function?</p>

<pre><code>function populateContext()
{
    contextTxtBox = document.getElementById('searchContext');
    pathArr = window.location.pathname.split( '/' );
    contextTxtBox.value = pathArr[1].toUpperCase(); 
};
</code></pre>
