@using (Html.BeginForm("Create", "Test", FormMethod.Post) { <input type="text" value="" /> <input type="submit" value="Search" /> @Html.AntiForgeryToken() }
$("#button").click(function() { if($.trim($("#textbox").val()).length>10) { alert('The criteria is that max 10 letters. '); return; } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)