Ajax HTTPRequest Using jQuery

$.ajax({ url:'Type URL', type:'HTTP Request Type GET/POST', data: { "VariableName": "ABC"} // If Data Need to send success: function(data, status, req){ // Actions when URL Successfully Fetch Data console.log(req.responseText) // req.resonseText Contain Response Text } error: function(data, status, req){ // Actions when URL Fails to Fetch Data } })
Using This, We can get data with easy syntax

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.