I have this line and this code, it works : not([href^="mailto:"]), so I excluded the links with the "mailto", and know I want to exclude a link with a specific ID. How can I do ?
$(function() {
var speed = 'slow';
$(".loader").fadeOut(speed, function() {
$('a[href]:not([href^="mailto:"])').on('click', function(event) {
event.preventDefault();
var url = $(this).attr('href');
if (url.indexOf('#') !== 0 && url.indexOf('javascript:') !== 0) {
$(".loader").fadeIn(speed, function() {
window.location = url;
});
}
});
});
});