Hi. I have configured my first ever js and to be honest. I can just about read it let alone understand how to fix the error. Basically I want to change details in a field, on pressing the enter key submit the form but so a confirmation dialog before the form actually submits. If all is good submit the actual form.
here is my js
[CODE]
<script>
$(document).ready(function() {
$(document).keyup(function(event) {
if (event.keyCode == 13) {
submitHandler: function( ){
answer = confirm(“Are you sure you want to submit?”);
if (answer == true){
$(“#v21frm”).submit();
}
else{
return false;
}
}
}
})
});
</script>
Now to issue I’m having. Which is the form is updating like it should be but the confirmation box is not appearing. Its just going straight through.