Answers for "{status: success} get the value of status using jquery"

0

how to get the status of other urls in ajax

$('#main-menu a').on('click', function(event) {
  event.preventDefault();

  $.ajax(this.href, {
    success: function(data) {
      $('#main').html($(data).find('#main *'));
      $('#notification-bar').text('The page has been successfully loaded');
},
    error: function() {
      $('#notification-bar').text('An error occurred');
    }
  });
});
Posted by: Guest on May-26-2020
0

{status: success} get the value of status using jquery

jquery ajax response status
Posted by: Guest on June-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language