/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<form action="sendordine.php" method="post" id="myform"> <!-- content form --> <div class="bottone"><a href="javascript:;">Invia l'ordine</a></div> </form> <script> $('document').ready(function(){ $('.bottone a').click(function(){ if(confirm('Vuoi procedere con l\'invio dell\'ordine?')){ $("form").submit(); } }); }); </script> </body> </html>