ajax - Why does when i call the .php file, the jquery function of it doesnt work -
i have in <head>
<link rel="stylesheet" href="css/jquery-ui.css" /> <script src="js/jquery.js"></script> <script src="js/jquery-ui.js"></script> <script src="js/date.js"></script>
all of vital run date time picker this.
<span><input id="datepicker" style="width:64px;outline:none;border:transparent;" type="text" > </span>
yeah sure thing, works. whenever calling whole .php of , display page. doesnt work. here ajax code.
<script type="text/javascript"> function get_bookextt(user_id) { var request = $.ajax({ url: "getbookext.php", type: "post", data: {'user_id': user_id}, datatype: "html" }); request.done(function(msg) { $("#get_bookext").html(msg); }); request.fail(function(jqxhr, textstatus) { alert( "request failed: " + textstatus ); }); } </script>
so recap question in case didnt explain well. getbookext.php working fine, whenever calling page, date time picker doesnt work anymore.
edited: page calling have seam <head>
problem?
Comments
Post a Comment