skip to Main Content

looping a javascript object inside a loop of custom object – Jquery ajax

First of all I'm beginner in javascript. I have this data data.responseJSOn.errors - Currently I'm displaying the errors like this way - var errors = data.responseJSON.errors; console.log(errors); errors.title && errors.title.forEach(function(messageText) { displayError(messageText); }); errors.message && errors.message.forEach(function(messageText) { displayError(messageText); }); How…

VIEW QUESTION
Back To Top
Search