Hi.
In my MVC project I have a button that has to trigger a script.
As it happens the page doesn't listen to the event.
I put the script in my view where the form is.
this works
<script >
alert("it worked");
</script>
this doesn't work
<script >
$(document).ready(function () {
$("#btnSubmit").click(function () {
alert("it worked");
</script>
this doesn't work
<script >
$(window).load(function () {
$("#btnSubmit").click(function () {
alert("it worked");
</script>
Can't find any solution on the net
Thanks in advance