¡@

Home 

2014/10/16 ¤W¤È 12:03:01

jquery Programming Glossary: dobday

How to validate a date using 3 dropdowns( day, month, year ) using jquery unobtrusive validation?

http://stackoverflow.com/questions/11475670/how-to-validate-a-date-using-3-dropdowns-day-month-year-using-jquery-unobtr

field class model field editor @Html.LabelFor m m.DateOfBirth new @class label div @Html.Telerik .DropDownList .Name DobDay .BindTo SelectList ViewData Days .HtmlAttributes new id DobDaySel @Html.Telerik .DropDownList .Name DobMonth .BindTo SelectList.. new @class label div @Html.Telerik .DropDownList .Name DobDay .BindTo SelectList ViewData Days .HtmlAttributes new id DobDaySel @Html.Telerik .DropDownList .Name DobMonth .BindTo SelectList ViewData Months .HtmlAttributes new id DobMonthSel @Html.Telerik.. m m.DateOfBirth div On the server side i do this HttpPost public ActionResult Register RegistrationModel regInfo int DobDay int DobMonth int DobYear SetRegisterViewData DobDay DobMonth DobYear if DobDay 0 DobMonth 0 DobYear 0 ModelState.AddModelError..