jQuery Week Picker Plugin For jQuery UI Datepicker Widget

jQuery Week Picker Plugin For jQuery UI Datepicker Widget
File Size: 2.49 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Week Picker is a jQuery plugin built with jQuery UI datepicker widget that allows you to pick a whole week by one click. Useful for weekly event planning.

How to use it:

1. Include the jQuery javascript library and jQuery UI on the web page.

<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"/> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>

2. Include the jQuery week picker after jQuery library.

<script src="jquery.weekpicker.js" ></script>

3. Create a container element where you want the week picker to appear on the web page.

<div class="week-picker"></div>

4. Call the function on the container element.

<script>
$(function(){
$('.week-picker').weekpicker();
});
</script>

This awesome jQuery plugin is developed by cmc19. For more Advanced Usages, please check the demo page or visit the official website.