Jquery datepicker popup not closing on select date in IE8

前端 未结 10 1336
逝去的感伤
逝去的感伤 2020-12-15 05:46

I\'ve got a web form with a start date field. I\'ve tied a jquery datepicker to the txt field. Now when I choose a date in FF, the selected date is populated in the text box

10条回答
  •  爱一瞬间的悲伤
    2020-12-15 06:29

    The solutions provided above only prevents the error from occurring.

    On the datepicker:

    onSelect : function(dateText, inst){ inst.input.trigger('cValidate')
    

    and bind the event to the calendar input element.

    .bind('cValidate', function (event) { window.ValidatorOnChange(event); });
    

    this will fire the validatorchanged event with the correct event args (input field).

提交回复
热议问题