I have a checkbox field, and i want if user checks that field then it should ask are you sure,if press ok then it should continue otherwise not?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
You can do this as follows:
A couple of points to note:
(1) I've assumed you only want the confirmation when the user checks the box, not when they clear it. (2) I've only tested this in chrome.