xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery Submit Form</title>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script>
$(document).ready(function(){
$("#submitBtn").click(function(){
$("#myForm").submit(); // Submit the form
});
});
</script>
</head>
<body>
<form action="/examples/html/action.php" method="post" id="myForm">
<label>First Name:</label>
<input type="text" name="first-name">
<button type="button" id="submitBtn">Submit Form</button>
</form>
</body>
</html>