' + manifestNoteText + ''; } else if (noteText.length !== 0 || manifestNoteText.length !== 0) { noteText = ''; } for (var items in orderStatus) { text += ''; } } else { text += 'No record found against this order.' } notes.html(noteText); status.html(text); } else { alert('Please fill all the fields correctly.'); } }, error: function (errorObject, errorText, errorHTTP) { alert('Please fill all the fields correctly.'); }, }); }) })