$(document).ready(function(){ //http://stackoverflow.com/questions/18684099/jquery-fail-to-detect-ie-11 // needed for elrte to properly detect it's IE if (!!navigator.userAgent.match(/Trident\/7\./)) $.browser.msie = true; //set datepicker to proper locale $.datepicker.setDefaults($.datepicker.regional['en']); })