JSFiddle - React, Tailwind, and code Playground

HTML

<form name="hello" method="POST" action="">
    Hello
</form>

JavaScript

document.forms.hello.action = 'j_security_check'+window.location.hash;
    
    alert(document.forms.hello.action);