jquery ajax return responsetext code example

Example: jquery ajax responseText

// To get jquery AJAX calls working
// remember to add Jquery to your head tag:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

var response = null;
var responseTextValue = null;

$.ajax({
	type: "GET",   
	url: "<Your url text>",   
	async: false,
	success : function(data) {
		// Here you can specify that you need some exact value like responseText
		responseTextValue = data.responseText;
	    response = data;
	}
});