Datepicker not working in IE8
<p>Hi I have an issue with my datepicker not working with IE7 or 8, works fine in Chrome and Firefox, could anyone perhaps shed some light on what the problem could be, I am a relative newbie so any advice will help.
here is my code</p>

<pre><code>&lt;script type="text/javascript" src="jquery/jquery.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="jquery/themes/custom-theme/jquery.ui.all.css"&gt;
&lt;script src="jquery/ui/jquery.ui.core.js"&gt;&lt;/script&gt;
&lt;script src="jquery/ui/jquery.ui.widget.js"&gt;&lt;/script&gt;
&lt;script src="jquery/ui/jquery.ui.datepicker.js"&gt;&lt;/script&gt;
&lt;script src="jquery/ui/jquery.ui.datepicker-de.js"&gt;&lt;/script&gt;
&lt;script&gt;
// Please add here the days you want to avoid shipping cakes, like new year, etc.
natDays = [
[1, 2, 'new year'], [6, 7,], [8, 15,], [10, 26,], [11, 1,], [12, 8,],
// [1, 26, 'au'], [2, 6, 'nz'], [3, 17, 'ie'],
//  [4, 27, 'za'], [5, 25, 'ar'], [6, 6, 'se'],
// [7, 4, 'us'], [8, 17, 'id'], [9, 7, 'br'],
//[10, 1, 'cn'], [11, 22, 'lb'], [12, 12, 'ke']
];

function nationalDays(date) {
for (i = 0; i &lt; natDays.length; i++) {
  if (date.getMonth() == natDays[i][0] - 1
      &amp;&amp; date.getDate() == natDays[i][1]) {
    return [false, natDays[i][2] + '_day'];
  }
}
 return [true, ''];
}


function noWeekendsOrHolidays(date) {
var noWeekend = $.datepicker.noWeekends(date);
if (noWeekend[0]) {
    return nationalDays(date);
} else {
    return noWeekend;
}
}


$(document).ready(function(){   
$(function() {
    $( "#datepicker" ).datepicker({
        showOn: "button",
        buttonImage: "jquery/calendar.gif",
        buttonImageOnly: true,  
        gotoCurrent: true,
        minDate: +9,
        beforeShowDay: noWeekendsOrHolidays,
        regional: "DE" 
    });
    //$( "#datepicker" ).datepicker.regional['de'];
});


$("#shipping").change(function() {

    if( $('#shipping option:selected').text() == 'Deutschland' ){
        $( "#datepicker" ).datepicker( 'option' , 'minDate' , '+9' );
        $( "#datepicker" ).datepicker( 'setDate' , null );
    }
    else{
        $( "#datepicker" ).datepicker( 'option' , 'minDate' , '+4' );
        $( "#datepicker" ).datepicker( 'setDate' , null );
    }
});

// And now fire change event when the DOM is ready
// $('#shipping').trigger('change');
 });
 &lt;/script&gt;
</code></pre>
