Dear All. I have a main html file and after the button click, it shall come from AJAX test.html
Test.html:
<div type="text" id="datepicker">H
</div>
my.js:
jQuery(document).ready(function($) {
jQuery.ajax({
type:'POST',
url:'test.html',
success: function(data2){
} //end of success
}); //end of ajax
$("#datepicker").datepicker();
});
Main.html Ajax calls the test.html, It needs to show the datepicker in the input field , how could I accomplish the above task?
Thank you