0
Even following the official documentation of Jquery, my script does not work. Something from day to day. I do not know if I changed something unintentionally.
Follows code below
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>load demo</title>
<style>
body {
font-size: 12px;
font-family: Arial;
}
</style>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<b>Projects:</b>
<ol id="new-projects"></ol>
<script>
$( "#new-projects" ).load( "load.html #projects li" );
</script>
</body>
</html>
- I have moved the Jquery file to the latest.
- I’ve tried it in different browsers
- I have checked similar topics (not so similar)
Is there an AJAX restriction to load Estatic pages? I don’t know what’s going on. I don’t want to run a page dynamically next to the server (php) because I’m developing an Html5 mobile app. I know there are ways to run php on a smartphone. I don’t want to!
I’ve never used it that way but... try just $( "#new-Projects" ).load( "load.html" ); and see if it works...
– LocalHost