i want to call jquery ajax function inside the function like this:
function mine(time){
$.get("test.php", function(data){
var mytime=data;
});
alert(mytime);
}
it just print undefined.
my test.php file is this:
<?php echo time(); ?>
i want that value of 'mydata' is current time of php server.