Tuesday, October 2, 2018

JQUERY3_AJAX_Call_Using_JQUERYLib

JQUERY3_AJAX_Call_Using_JQUERYLib

https://www.w3schools.com/jquery/

https://www.w3schools.com/jquery/jquery_ref_ajax.asp




<!DOCTYPE html>
<html>

<head>
<script type="text/javascript" src="libs/jquery-3.3.1.min.js"> </script>
<script>
    $(document).ready( function()
    {
        
        console.log("DOM is ready......");

$('#clickB').click(function(){
$.ajax({
url:"http://pavanjavacrack.blogspot.com/",
success: function(data){
$('#details').text(data);
}
});
});

}
    );
</script>
</head>
<body>

<button id="clickB">AJAX Call</button>
<p id="details"></p>

</body>
</html>

No comments:

Post a Comment