<html>
<head>
<script src="../../ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("input").keyup(function(){
txt = $("input").val();
$("span").load("demo_ajax_gethint.html", {suggest: txt});
});
});
</script>
</head>
<body>
<p>Start typing a name in the input field below:</p>
First name:
<input type="text">
<p>Suggestions: <span></span></p>
<p>The file used in this example (<a href="demo_ajax_gethint.txt" target="_blank">demo_ajax_gethint</a>) is explained in our Ajax tutorial</p>
</body>
<!-- Mirrored from www.w3schools.com/jquery/tryit.asp?filename=tryjquery_ajax_load_data by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:34:06 GMT -->
</html>