this question has answer here:
is possible enable jquery ui (datepicker) enable multi select , unselect ?
example of datepicker using. http://jqueryui.com/datepicker/
i have got requirement enable datepicker select multiple dates , wondering how implement similar one. prompt reply appreciated. please give me examples thanks
multidatespickr little plugin enables jquery ui calendar manage multiple dates.
features:
- select date ranges.
- pick multiple dates not in secuence.
- define maximum number of pickable dates.
- define range x days possible select y dates.
- define unavailable dates.
html:
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"/> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"/> <script src="http://multidatespickr.sourceforge.net/jquery-ui.multidatespicker.js"/> <input id="datepick" type="text"/>
js:
$(document).ready(function(){ $('#datepick').multidatespicker(); });
or
jquery(document).ready(function(){ jquery('#datepick').multidatespicker(); });
check jsfiddle.
Comments
Post a Comment