my code is
<script src="~/Scripts/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert("hello");
});
</script>
How to make to work the Jquery. Thanks.
update: “Hello” msg is not shown. Thanks.
I’d be checking the path you have. The ~/ is parsed on ASP.NET server side controls, but not on normal HTML tags entered into a page. I think you want something like the following.
Traditional ASP.NET
ASP.NET MVC Razor