Javascript examples for jQuery Method and Property:load
Load ASP page and pass in value
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("input").keyup(function(){ txt = $("input").val(); $("span").load("demo.txt", {suggest: txt}); });//w w w. ja va 2 s. c o m }); </script> </head> <body> <p>Start typing a name in the input field below:</p> First name: <input type="text"> <p>Suggestions: <span></span></p> </body> </html>