I am trying to get simple jQuery to execute on my Content page with no luck below is what I am trying to do:
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<script src="../../Scripts/jquery-1.2.6.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
alert("hi");
});
</script>
</asp:Content>
I have also tried getting the following to work:
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<script src="../../Scripts/jquery-1.2.6.js" type="text/javascript"></script>
<script type="text/javascript">
function onload()
{
$("#myDiv").css("border", "1px solid green");
}
</script>
<div id="myDive">
Hello
</div>
</asp:Content>