JSFiddle - React, Tailwind, and code Playground

HTML

<a href='#' class='ajax'>Test</a>

<div attribute="234"></div>

JavaScript

jQuery(document).ready(function(){
    jQuery('.ajax').click(function(event) {
        jQuery('div[attribute=234]').html('test');
    });
});