Home Multiple date selection in jquery
Reply: 0

Multiple date selection in jquery

user1242 Published in April 25, 2018, 8:22 pm

Please help I am new in MVC, ASP.NET shows to set multiple date selection in ASP.NET MVC. I am using this code it is not working:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="http://multidatespickr.sourceforge.net/jquery-ui.multidatespicker.js"></script>

    $('.date').datepicker({multidate: true });      
    $('.date').datepicker('setDates', [new Date(2014, 2, 5), new Date(2014, 3, 5)]) 

<div class="shadow">
    <div class="container4">
        <div class="form-group">
            @Html.Label("Start Date", htmlAttributes: new { @class = "control-label col-md-2", style = "font-size:1pc" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.StartDate, new { @class = "form-control", placeholder = "Start Date", @type = "Date",  id= "datePick" })
                @Html.ValidationMessageFor(model => model.StartDate, "", new { @class = "text-danger" })
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.308775 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO