Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- webshim.setOptions('forms-ext', {
- replaceUI: 'auto',
- types: 'date',
- date: {
- startView: 2,
- inlinePicker: true,
- classes: 'hide-inputbtns'
- }
- });
- webshim.setOptions('forms', {
- lazyCustomMessages: true
- });
- //start polyfilling
- webshim.polyfill('forms forms-ext');
- //only last example using format display
- $(function () {
- $('.format-date').each(function () {
- var $display = $('.date-display', this);
- $(this).on('change', function (e) {
- //webshim.format will automatically format date to according to webshim.activeLang or the browsers locale
- var localizedDate = webshim.format.date($.prop(e.target, 'value'));
- $display.html(localizedDate);
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement