I have a pulldown menu that dynamically populates depending on the date entered in a prior field.

It is a form to pay parking tickets. The drop down menu show higher fines if the citation is 30 days old.

Works great in Chrome, Firefox, Safari, Camino, etc... But not in IE.

jQuery('.late').hide();
jQuery('.normal').hide();
jQuery('#element-14').change(
function(){
jQuery('.late').hide();
jQuery('.normal').hide();
var tempDate= new Date();
var dateViolatetmp=jQuery('#element-14').val();
var dateViolatearr = dateViolatetmp.split('/');
var dateViolate= new Date(dateViolatearr[2],(parseInt(dateViolatearr[0],10)-1).toString(),dateViolatearr[1]);
var one_day=1000*60*60*24;
var tempDate_unixtime =tempDate.getTime() ;
var dateViolate_unixtime =dateViolate.getTime();
var dayDifference = Math.round((tempDate_unixtime/one_day)) - Math.round((dateViolate_unixtime/one_day));

if(dayDifference<=30){
jQuery('.normal').show();}
else{
jQuery('.late').show();
}
What is it in the code that IE does not like?

I tired to post a url, but it said new members can not post a URL.

Nine years and I am still a new member?