Home Multiple date selection in jquery
Reply: 0

Multiple date selection in jquery

Saeed Chandio
1#
Saeed Chandio Published in 2018-01-13 08:11:29Z

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>

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

<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" })
            </div>
        </div>
    </div>
</div>
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO