Thipshekbeere
New Member
I have the following form:\[code\]@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl, @class = "form-vertical login-form", id = "loginform" })) <button type="submit" class="btn green pull-right"> Login <i class="m-icon-swapright m-icon-white"></i> </button>}\[/code\]And this the javascript handling the event function\[code\]$(document).ready(function () { $("#loginform").submit(function () { alert('Handler for .submit() called.'); return false; });}\[/code\]However this doesn't work at all. the alert is never triggered