I have more checkbox on page.
When user check a checkbox and click on submit button, a row deleted from database.
Before PHP delete this row from database I want to show a confirmation window : "Are you sure you want to delete the selected items?"
If no checkbox selected on page, I don't want to see the confirmation window after submit.
I think the code is simple but I don't know much JavaScript. I need to implement this in "Trash" folder (private messaging).
What exactly I need: I need to see if checkbox checked, if yes show the confirmation window. If no checkbox selected don't show the confirmation window.
I appreciate any help !