views:

66

answers:

1

Hello,
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(liveMultiFieldsDatepickerParams).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); ?

A: 

have u already tried with ready event? are u using asp.net?

frabiacca
It's PHP. The ready event only works with document objects. So I'm almost sure it will not work on input tags.
Franck