Object expected error
<p>My site is working perfectly in all browsers except the IE.
The error box is prompted when the page is load in IE with the error msg below:
Line: 227
Error: Object expected</p>

<p>when i start debugging, the error is from here below at the first line.</p>

<pre><code>$().ready(function()
{
    // Hide all elements with .hideOnSubmit class when parent form is submit
    $('form').submit(function()
    {
        $(this).find('.hideOnSubmit').hide();
    });
});
</code></pre>

<p>Can anyone advice? it is really annoying to prompt that message on every page </p>

<p>============== EDIT ===============<br>
I have tried the advice below </p>

<pre><code>$(document).ready(function($)
{
    // Hide all elements with .hideOnSubmit class when parent form is submit
    $('form').submit(function()
    {
        $(this).find('.hideOnSubmit').hide();
    });
});
</code></pre>

<p>OR</p>

<pre><code>jquery(function($)
{
    // Hide all elements with .hideOnSubmit class when parent form is submit
    $('form').submit(function()
    {
        $(this).find('.hideOnSubmit').hide();
    });
});
</code></pre>

<p>But both also give me the same error.</p>
