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:
<script>
// 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();
}
});
</script>
And this is the element to load:
<label for=" echeance " class="form-label size-120 fl-space2">Echéance: <span class="required">*</span></label>
<input type="text" id="echeance" class="required text fl-space2 datepicker-inline" name="echeance" />
as you notice there is "datepicker-inline" .. the probleme is that datepicker is not working on the loaded input
Thanks :)