onsubmit="return confirm('Do you really want to submit the form?')"
ユーザーが送信ボタンをクリックしてアイテムを削除する前に、警告を表示するために使用しようとしています。確認ボックスが表示されず、アイテムの削除に直接進みます。
私のコードのどこが間違っているのか、誰にもわかりますか? 二重引用符と一重引用符を変更しようとしましたが、確認ボックスが表示されません。
私のコードは次のとおりです。
echo '<td> <form method="post" action="deleteassign.php" name="deleteassignform"
id="deleteassignform" onsubmit="return confirm('Do you really want to submit the form?')">';
echo '<input type="hidden" name="quizidvalue" id="quizidvalue" value="'.$sendquizid.'" />';
echo '<input type="hidden" name="classidvalue" id="classidvalue" value="'.$sendclassid.'" />';
echo '<input type="submit" name="deleteassignment" id="deleteassignment" value="Delete This Assignment"> </form> </td> </tr>';