[jQuery] (Newbie Question) on loading jquery functions after AJAX load
First of all sorry I might sound a like a jquery newbie, but I'm
loading a webpage with the "load" and that page contains a
"datepicker" function, this is my code:
<script type="text/javascript">
$(document).ready(function(){
$("#loadformdiv").load("forms.asp?form=2");
$("#loadformdiv").ajaxStop(function(){
$(this).append(
$('.date-picker').datePicker()
);
});
});
but it's taking the newly loaded page and putting the input datepicker
field at the bottom, the same goes for any jquery function I try to
load after an jquery ajax call.
Any help? Thanks