JSFiddle - React, Tailwind, and code Playground

HTML

<form id="TP">
     <input type="image" id="test"></input>
    </form>

JavaScript

$( "#test" ).click(function( event ) {
  event.preventDefault();
    console.log('No submit');
var formValue = $('#TP').serialize();
$.post('saveIndvQuestionnaire.jsp?'+formValue+'&category=3',
        function(data) {
    return false;
});

});