JSFiddle - React, Tailwind, and code Playground
HTML
<div id="brochure2012navigation"><a href="/_display/">test</a></div>
<div id="brochurePage"></div>
JavaScript
$(document).ready(function() {
$('#brochure2012navigation a').click(function(event)
{
event.preventDefault();
//$('#brochurePage').load($(this).attr('href'));
var url = $(this).attr('href');
console.log(url);
$.ajax({
url: url,
dataType: 'html',
success: function(html) {
$('#brochurePage').html(html);
},
error: function (xhr, ajaxOptions, thrownError) {
console.log(xhr);
console.log(thrownError);
},
});
});
});