Posted on: 5/9/2012 10:10:52 AM | Views : 228

Hi,
I have added the jquery reference in the master page and .aspx as given below.
But when i load the form the $(document).ready  function in the .js file is not getting triggered.
When i did a view source i could see all the references to .js files are present.
Please find below the references which i added to master, .aspx and the jquery file content.
Not sure what is wrong.
//QueryDetails.js
$(document).ready(function () {
    alert("test");
    $('<img/>').click(function () {
        alert("test");
    });
});
//

.aspx page
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<script type="text/javascript" src="Scripts/QueryDetails.js"/>
</asp:Content>

Master Page
< ...

Go to the complete details ...