Highlighting rows of a GridView on hover - How to pass GridView as a paramter into separate JavaScript file?
<p>I am learning jQuery and I am doing practise.
<strong>My task is: Highlighting GridView row on hover</strong>
I have written the following code in .aspx page</p>



<p></p>

<pre><code>&lt;script src="Scripts/HighlightGridViewRow.js" type="text/javascript"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
        $("#&lt;%=GridView1.ClientID%&gt; tr").hover(
function() {
    $(this).addClass("highlight");
},
function() {
    $(this).removeClass("highlight");
});
    });
&lt;/script&gt;
</code></pre>

<p>

    
    
</p>

<p><strong>Nothing jQuery specific code in code behind.</strong></p>

<p>How can I move my javascript code written in .aspx page into one separate .js file?</p>

<p>Thanks in Advance,</p>

<p>Ashok kumar.</p>
