There is one form, inside the form there are many checkboxes. Two operations can placed upon these ticked checkboxes. Since there is only one "submit" button for a form, how to walk around this?
I know I can set two buttons, one button for each operation, and an extra "submit" button, which looks like the pseudocode below:
<form>
<checkbox1>
<checkbox2>
<checkbox3>
...
<checkboxn>
<button value="operation1">
<button value="operation2">
<submit value="submit"></form>
but a user needs to click twice, is there a better solution? Maybe I can use JQuery to achieve it, how to write the code?