This article is originally published at https://www.tutsmake.com/jquery-api-ajax-get-method-example/
Let’s see example of jquery ajax get request.
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery Ajax GET Request Example</title>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<style>
.formClass
{
padding: 15px;
border: 12px solid #23384E;
background: #28BAA2;
margin-top: 10px;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(event){
var name = "Tutsmake";
$.get('https://www.tutsmake.com/Demos/html/ajax-get-method.php', {webname: name}, function(data){
$("#output").html(data);
});
});
});
</script>
</head>
<body>
<div class="formClass">
<button type="button">Click & Get Data</button><br>
<div id="output">Hello</div>
</div>
</body>
</html> ```
This article is originally published at [https://www.tutsmake.com/jquery-api-ajax-get-method-example/](https://www.tutsmake.com/jquery-api-ajax-get-method-example/ "https://www.tutsmake.com/jquery-api-ajax-get-method-example/")
#jquery #jquery ajax get request with parameters #ajax get method example #jquery ajax get request parameters #ajax