Load ASP page and pass in value - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:load

Description

Load ASP page and pass in value

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials