开发者

Setting JqueryUI datepicker on a AJAX incoming form

I'm trying to put a JqueryUI Datepicker on an AJAX appearing form.

The traditional $(".datepicker").datepicker(datepickerParams); does not work since the ".datepicker" element is not present on DOM ready.

I've tried the live() method but there is no load event on <input>.

Then, I do the following :

$("#datepicker_button").live('click', function() {

$('.multiFieldsDatepicker').datepicker(liveMultiFieldsDatepickerPara开发者_开发技巧ms).focus(); });

It works when I focus on the input field but I can't put the calendar icon to show the calendar.

Is it possible to catch an event when the form appears and set the datepicker with $(".datepicker").datepicker(datepickerParams); ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜