Many places in my application, submitting forms and visiting post-links requires the user to specify some reasoning as to why they decided to do so (the comments/reasoning are used to track who did what changes internally).
Now for this reason, I would like to be able to change the behaviour of data: {confirm: "Are you sure you want to submit this form?"}
to prompt for an input instead of just answering yes/cancel. I would like the box to appear with a an input field, which content will then be appended to the requests params, so I can store it from the controller.
How can I do this?