I have a problem, I am loading a page in a div with a form that has a date. I want to get datepicker, but when the page loads with ajax, jquery does not see my input. I tried something like this:
$('#birthdate').live('click', function() {
$(this).datepicker({showOn:'focus'}).focus();
});
Well, it worked, but the entire datapicker blinks, sometimes it doesn’t show, etc. Is there a chance that a bad show datepicker is from my own onlcik function? sort of:
function choosedate() {
$('#birhtdate').datepicker();
}
its not only with datepicker, I just don't know how to use jquery inside the loaded ajax page.
source
share