Is it possible to have a coded submit button outside of the form?

Does anyone know if it’s possible to create a submit button with some HTML outside of the form block that performs the same submit function?

I am trying to place the submit button on a specific part of the page but it’s not going to work if it has to be inside of the form block

I actually figured it out in case anyone needs to do this for their site here’s the code I used:

$(‘.your-submit-div-class-here’).click(function() {
$(‘form’).submit();
});