There is a form:
<form id="spageForm" method="post" action="index.php"> <button type="submit" name="save"></button> <button type="button" name="delete"></button> </form> I need to use JS (preferably jQuery) to initialize the submit() event for <button type="button" name="delete"></button> .
At the moment, I found a way to $('#spageForm').submit(); submit the form: $('#spageForm').submit(); , but $_POST['delete'] not sent to index.php , but it needs to be sent.