Last active
March 23, 2016 10:34
-
-
Save najlepsiwebdesigner/32fed5dc2fe2df9a5f6b to your computer and use it in GitHub Desktop.
Foundation datepicker - limit the view mode to months, use as component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row collapse date" id="dpMonths" data-date-format="mm/yyyy" data-start-view="year" data-min-view="year" style="max-width:200px;"> | |
<div class="small-2 columns"> | |
<span class="prefix"><i class="fa fa-calendar"></i></span> | |
</div> | |
<div class="small-10 columns"> | |
<input size="16" type="text" value="02/2012" readonly> | |
</div> | |
</div> | |
<script> | |
$(function(){ | |
$('#dpMonths').fdatepicker(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment