Wijmo InputDate Test

For testing localization and other options in the date input component

HTML

<link rel="stylesheet" href="http://cdn.wijmo.com/themes/aristo/jquery-wijmo.css">
<link rel="stylesheet" href="http://cdn.wijmo.com/jquery.wijmo-complete.all.2.1.0.min.css">
<script src="http://cdn.wijmo.com/jquery.wijmo-open.all.2.1.0.min.js"></script>
<script src="http://cdn.wijmo.com/jquery.wijmo-complete.all.2.1.0.min.js"></script>
<script src="http://www.fleetmon.com/static/js/globalize/cultures/globalize.culture.fr-CH.js"></script>
<h1>Test localized Wijmo Date picker</h1>

<p><input type="text" class="datepicker" size="15"></p>

CSS

body { margin-left:1em; }
h1 { font-weight:bold; }
h1, p { margin:1em 0; }

JavaScript

var dateopts = {         
    culture: 'fr-CH', 
    dateFormat: 'dd-MM-yyyy', //'d',
    nullText: ' ', showNullText: true, 
    smartInputMode: true, //startYear: 1910,
    showTrigger: true, 
};

$('.datepicker')
    .css('width','14em') // Firefox display error
    .wijinputdate(dateopts);