I have the code below in my index page for my home controller. I am new to Jquery. When I click the button, nothing happens. I expect to get the alert. What am I doing wrong?
@{
ViewBag.Title = "Home Page";
}
@section featured {
<section class="featured">
<div class="content-wrapper">
<hgroup class="title">
<h1>@ViewBag.Title.</h1>
<h2>@ViewBag.Message</h2>
</hgroup>
<p>
Zombie's Page
</p>
</div>
</section>
}
@using (Html.BeginForm())
{
<input type="submit" value="Click me" id="clickme" />
}
<script type="text/javascript">
$("#clickme").click(function () {
alert("Getting ready for practice !!");
});
</script>