jquery.ajax apply,ajax - Apply jquery functions to loaded elements - Stack Overflow

郭炳
2023-12-01

I'm trying to apply functions on loaded element, I search the web but i don't understand what to do.

Can anyone tell me what to do?

Example:

// checkbox cheque

$("#cheque").click( function () {

if($("#cheque").is(":checked"))

{

//alert('Cheque is checked');

$("#load_cheque").load("./server/mode_paiement.php?cheque=1");

}

else

{

//alert('Unchecked Cheque!!');

$("#load_cheque").empty();

}

});

And this is the element to load:

Echéance: *

as you notice there is "datepicker-inline" .. the probleme is that datepicker is not working on the loaded input

Thanks :)

 类似资料: