I was trying to pass the width of a page as a variable to C# code behind asp.net, and was only receiving empty strings. I narrowed down to the problem that the JQuery function is simply not firing. I changed it to the simplest code I could just to test if the function was doing anything:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
$(document).ready(function()
{
alert("hello");
});
</script>
And yet, it still does nothing.
- I've included JQuery
- I've triple checked my syntax
- No errors are reported in the console
- I looked through the other similar SO 'facepalm' questions, but none of their solutions work (see above)
What incredibly obvious thing am I missing?