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');
}
});
});
Also in JavaScript:
- how to run method in method vue js on load
- conditional object spread
- javascript format currency pt-br
- how to format unix timestamp javascript
- math.round js 1 decimal
- sequelize migration add column
- Replace function in string in javascript
- canvas cut path to image
- form reset jquery
- $.post javascript
- convert date time to string javascript
- move an element into another jquery
- string to JSONobject + android
- javascript w3schools
- return this javascript
- sort data according to date in js
- jquery empty ul
- javascript switch statement multiple cases
- function that search a biggest value in array javascript
- socket io middleware
- discord.js check for permissions
- react native button round
- Find the maximum number of an array js
- js reduce concat numbers