Users Pricing

forum

home / developersection / forums / date picker was not working in mvc razor view

Date picker was not working in mvc razor view

Hemant Patel 1462 06 Dec 2017

I am open a modal popup form but datepicker for DOB was not working.

Here is my code:

<div class="col-md-6">
    <label for="dob">DOB</label>
        <div class='input-group date' id='datetimepicker1'>
            @Html.TextBoxFor(x => x.DOB, "{0:MM/dd/yyyy}", new { @class = "form-control", placeholder = "mm/dd/yyyy" })
                 <span class="input-group-addon">
                    <i class="fa fa-calendar" aria-hidden="true"></i>
                 </span>
                    @Html.ValidationMessageFor(x => x.DOB)
         </div>
/div>  

Hemant Patel

Student

Exploring the online world is my passion. have experience of #content writing #SEO #Digital Marketing #On-Page #Lead Generation #Content Analyst #Marketing Analyst... I could never stop at one point, continuously wanted to acquire more and more skills. My work for any organization will be full of passion and hard work.


1 Answers