Dialog Button Submitting form
-
I am displaying an HTML5 Dialog box on a custom post edit form. It is pretty simpla as it is just some text and 2 buttons
<dialog id="confirmDialog"> <p>*********</p> <div> <button value="cancel">No</button> <button id="confirmBtn" value="yes">Yes</button> </div> </dialog>
For some reason when I click either button the form submits. How can I stop that?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Dialog Button Submitting form’ is closed to new replies.