Below is my ajax call
$(document).ready(function() { $("#blog").focusout(function() { alert('Focus out event call'); alert('hello'); $.ajax({ url: '/homes', method: 'POST', data: 'blog=' + $('#blog').val(), success: function(result) { $.each(result, function(key, val) { $("#result").append('<div><label>' + val.description + '</label></div>'); }); }, error: function() { alert('failure.'); } }); }); });
I get "TypeError: invalid" in the error "operand obj" in my console
Thank you in advance
javascript jquery ajax
user2621586
source share