The application shows an html page which has a form element. The form has several submit buttons. One of them is a button titled "Close deal". When a user clicks on this button, something context menu appears. The context menu has choices like "not submitted", "price too high", "other". Clicking on a choice should submit the form (like a submit button would have). The backend needs to know that the user clicked on one of these choices (and not on other submit buttons) and on which one.
How to achieve that?
I have found a jquery ui split button example but it does not present the needed capability. For example, there is no need for two buttons (one with a text and one with an arrow) - there is just a single behavior - showing the context menu. Additionally, I did not understand how to make the items to submit the form.
I have tried to find something else but failed to find anything close enough to the requirements.
Aucun commentaire:
Enregistrer un commentaire