jquery error:microsoft jscript runtime error '$' is undefined jquery?
<p>i used the following jquery for validation of particular div.</p>

<pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    $(document).ready(function () {
        $('#btnNext').click(function () {
            if ($('#page1 input[id$=txt_companyname]').val() == "") {
                alert('company Name is Blank!');
                $('#page1 input[id$=txt_companyname]').focus();
            }
            else if ($('#page1 input[id$=txt_headoff]').val() == "") {
                alert('Password is Blank!');
                $('#page1 input[id$=txt_headoff]').focus();
            }
        });
    });
&lt;/script&gt;
</code></pre>

<p>i have the button in this page, if i click the btn without filling these field, then the alert msg should displayed.</p>

<pre><code>&lt;div id="page1" runat="server" style=" padding-left:10px"&gt;
&lt;div class="divsize"&gt;
                    &lt;div class="labelsize"&gt;&lt;asp:Label ID="lbl_companyname" runat="server" Text="1. Name of the Company" &gt;&lt;/asp:Label&gt;&lt;/div&gt;
                    &lt;div class="labelcolon"&gt;&lt;asp:Label ID="Label2" runat="server" Text=":" &gt;&lt;/asp:Label&gt;&lt;/div&gt;
                    &lt;div class="labelsize"&gt;&lt;asp:TextBox ID="txt_companyname" runat="server" Width="250px" &gt;&lt;/asp:TextBox&gt;&lt;/div&gt;
                &lt;/div&gt;
                &lt;div class="divsize"&gt;
                    &lt;div class="labelsize"&gt;&lt;asp:Label ID="lbl_headoff" runat="server" Text="2. a) Head Office / Registered Office" &gt;&lt;/asp:Label&gt;&lt;/div&gt;
                    &lt;div class="labelcolon"&gt;&lt;asp:Label ID="Label3" runat="server" Text=":"&gt;&lt;/asp:Label&gt;&lt;/div&gt;
                    &lt;div class="labelsize"&gt;&lt;asp:TextBox ID="txt_headoff" runat="server" 
                        TextMode="MultiLine" Width="250px" &gt;&lt;/asp:TextBox&gt;&lt;/div&gt;
                &lt;/div&gt;
                &lt;/div&gt;
</code></pre>
