HTML - How to do a Confirmation popup to a Submit button and then send the request?

后端 未结 5 1885
北海茫月
北海茫月 2020-12-04 19:22

I am learning web development using Django and have some problems in where to put the code taking chage of whether to submit the request in the HTML code<

5条回答
  •  暖寄归人
    2020-12-04 19:30

    Another option that you can use is:

    onclick="if(confirm('Do you have sure ?')){}else{return false;};"

    using this function on submit button you will get what you expect.

提交回复
热议问题