I am using jquery autosuggest to populate the data in a text box. When i am trying to work that functionality in ie8 i am getting the error: console not define
The jquery code where it is showing error is :
function lookup(inputString) {
if(inputString.length == 0) {
// Hide the suggestion box.
$('#suggestions').hide();
} else {
// post data to our php processing page and if there is a return greater than zero
// show the suggestions box
$.post("string_search.php", {mysearchString: ""+inputString+""}, function(data){
**console.log(data.length)**
if(data.length >0) {
$('#suggestions').show();
$('#autoSuggestionsList').html(data);
}else{
$('#suggestions').hide();
}
});
}
} //end
Please help me in solving the error