jquery - datepicker and Internet Explorer -
i have problem use of datepicker in internet explorer. in other browsers there isn't problem, ie.
the code use this:
<script type="text/javascript"> ( function($) { $(document).ready( function() { $("#slider").easyslider({ auto: true, continuous: true }); $( ".tcal" ).datepicker({ changemonth: true, changeyear: true, showon: "both", mindate: '-122y', maxdate:'0', yearrange: "-122", buttonimage: "/images/kalender3.gif", buttonimageonly: true }); $( ".tver" ).datepicker({ changemonth: true, showon: "both", buttonimage: "/images/kalender3.gif", buttonimageonly: true, mindate: '0', maxdate: '+1y', }); $('.tcal,.tver').datepicker('option', $.extend({showmonthafteryear: false},$.datepicker.regional['<?php print(($lng=='1')?'nl':'fr');?>'])); $('.tcal,.tver').datepicker( "option", "dateformat", "dd/mm/yy" ); }); } ) ( jquery ); </script>
but won't work in internet explorer. on home page have slider, , won't work anymore. work when place parts in comment:
$( ".tcal" ).datepicker({ /* changemonth: true, changeyear: true, showon: "both", mindate: '-122y', maxdate:'0', yearrange: "-122", buttonimage: "/images/kalender3.gif", buttonimageonly: true*/ }); $( ".tver" ).datepicker({ /*changemonth: true, showon: "both", buttonimage: "/images/kalender3.gif", buttonimageonly: true, mindate: '0', maxdate: '+1y',*/ });
does knows made mistake?
some versions of ie don't allow trailing commas. if remove comma after
maxdate: '+1y'
does work?
Comments
Post a Comment