Ajax jquery confusion
3 answers
The data will be available in the parameter that you pass to the callback function
$.ajax( {
type:'Get',
url:'http://mysite.com/mywebservice',
sucess:function(data) {
alert(data);
}
})
Which you can also express with Ajax shorthand get
$.get('http://mysite.com/mywebservice', function (data) {
alert(data);
});
And if you mean how to access data after you've put it into the DOM, then it will be automatically available because it will become part of the DOM.
+1
user434917
a source
to share