Silly mistakes will make you look sloppy – if you can’t even take the time to spell your own CV properly, what does that say to a potential employer about your attention to detail?
jQuery(function($) { $('.date-pick').each(function() { var format = $(this).data('format') || 'mm/dd/yyyy'; format = format.replace(/yyyy/i, 'yy'); $(this).datepicker({ autoFocusNextInput: true, constrainInput: false, changeMonth: true, changeYear: true, beforeShow: function(input, inst) { $('#ui-datepicker-div').addClass('show'); }, dateFormat: format.toLowerCase(), }); }); d = new Date(); $('.birthdate-pick').each(function() { var format = $(this).data('format') || 'mm/dd'; format = format.replace(/yyyy/i, 'yy'); $(this).datepicker({ autoFocusNextInput: true, constrainInput: false, changeMonth: true, changeYear: false, minDate: new Date(d.getFullYear(), 1-1, 1), maxDate: new Date(d.getFullYear(), 12-1, 31), beforeShow: function(input, inst) { $('#ui-datepicker-div').removeClass('show'); }, dateFormat: format.toLowerCase(), }); }); });