Should be a quickie ...
1) I created a new project in VS2013 using MVC.
2) I added the following code to the bottom of the default Home\Index.cshtml that is created with the project template.
<button class="myalertclass">Alert me</button>
<script src="@Url.Content("~/Scripts/jquery-1.10.2.js")">
$(document).on('click', '.myalertclass', function (e) {
alert('Hello you');
})
</script>
I was now expecting that when I click the "Alert me" button, I'll get a message box with "Hello you", but no such joy.
The problem is that when I click the button, the event is not fired. I guess I'm missing some wiring somewhere, but am stumped.