Friday, 12 February 2016

MVC - How to add Calendar extension to textBox

Watch this example on YouTUbe:

1. Ensure Layout.cshtml has the following at the beginning:

and the following at the end:
        @Styles.Render("~/Content/themes/base/css", "~/Content/css")
        @RenderSection("scripts", required: false)

2. Create DatePicker.js in scripts folder:
$(function () {

3. Now every control with with class editor-file-date will have calendar extension

No comments:

Post a Comment