Answers for "when div load jquery"

0

jquery document load

$(document).ready(function() {
  // code here
});
Posted by: Guest on August-14-2021
0

jquery La méthode .load()

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
   
  <title>jQuery demo ajax post et ajax get </title>
<script type="text/javascript" src=
  "http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js">
  </script>
<script>
$(document).ready(function(){
 
  $("input").keyup(function(){
   
  txt=$("input").val();
   
  $("span").load("demo_ajax_post.php",{suggest:txt});
 
  });
});
</script>
</head>
<body>
<p>Commencer
  à saisir le nom d'un animal dans la zone de texte suivante:</p>
Nom
  d'animal : <input type="text"/>
<p>Suggestions :
  <span></span></p>
<p>le
  fichier  "demo_ajax_load.php"
  utilisé dans cet exemple se trouve ici: (<a href="demo_ajax_post.txt"
  target="_blank">demo_ajax_load</a>) </p>
</body>
</html>
Posted by: Guest on April-26-2021

Code answers related to "when div load jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language