I have a trash can icon for a delete button on a Django site.
This is only an anchor tag with the tag inside, which has its own href set to the delete view, passing the identifier of the model element.
It works fine, but I want to create a popup dialog that asks for confirmation before uninstalling.
I have seen several ways to do this, but they all require that it be entered instead of an anchor.
I also need to do this work on touch devices.
How can I change it to an input element and save the icon as a button, and not show the submit button. And how can I get a dialog for a popup and when the "Yes" button is clicked, pass the correct URL and ID to submit?
Any advice would be highly appreciated.
shenk source
share