$(document).ready(function() {
$.ajax({
type: 'post',
async: false,
url: 'WebService.asmx/GetCustomerInformation',
data: '{}',
contentType: 'application/json;charset=ytf-8',
dataType: 'json',
success: function(msg) {
$.each(msg.d, function(i, data) {
var name = data.Name;
var CustomerId = data.CustomerId;
});
},
Error: function() {
alert('error');
}
});
I get a Namespace doesn’t directly contain members such as fields or methods.
unexpected character $.
too many character literals.
But I have included the library.Its not an error but the characters are underlined with red line how can it be fixed.
more then likely it’s because intellisense has no clue about jQuery