Answers for "jquery load"

1

load js

window.addEventListener('load', (event) => {
  console.log('page is fully loaded');
});
Posted by: Guest on April-08-2020
-1

js ready

// without jQuery (doesn't work in older IEs)
document.addEventListener('DOMContentLoaded', function(){ 
    // your code goes here
}, false);
Posted by: Guest on November-28-2020
0

jquery load

$( "#result" ).load( "ajax/test.html" );
Posted by: Guest on August-04-2021
-1

jquery load php

<!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-3.4.1.js"></script>
</head>
<body>
 
<b>Projects:</b>
<ol id="new-projects"></ol>
 
<script>
$( "#new-projects" ).load( "/resources/load.html #projects li" );
</script>
 
</body>
</html>
Posted by: Guest on March-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language