JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<body>
<a href="http://www.wikipedia.org/" id="TestLink">click to see that there is no ajax success callback executed, even if http return status is 200</a>
</body>
</html>
JavaScript
jQuery(document).ready(function($) {
console.log('jquery ready');
$('#TestLink').live('click', function() {
console.log('click');
testLink = $(this);
targetUrl = testLink.attr('href');
$.ajax({
url: targetUrl,
success: function(data) {
console.log('ajax success');
}
});
return false;
});
});