datepicker doesn't execute when submited
i been working this for a days but i don't get it so i decided entered this forum. i really have hard time tracing where is the problem of my code.. here my code:
-
$(".editME").click(function(){
var element = $(this);
var show = element.attr("id");
$.get('index.php',{option:'myReports', task: 'edit', id: show},function(data)
{
$('body').html(data);
$("#editFile").show(1000);
});
return true;
});
when i click the edit button it well show the whole page and inside of it i have plugin datepicker. the problem is it doesn't show the canlendar:
- $(function() {
- $("#datepicker").datepicker({
- changeMonth: true,
- changeYear: true
- });
- });
when i change the url to index.php?option=myReports&task=edit.. the calendar appears.
my question: my question is how i load the calendar well i executing the
editME?. even if i return true it doesn't execute.