Welcome, Guest
Username: Password: Remember me

TOPIC: submiting on "next" button

submiting on "next" button 2 years 10 months ago #67613

  • stribor
  • stribor's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
Hi,
I have survey "question by question". I also have validation on the question and it works fine when user clicks on "next" button but it doesn't when user hits enter button.
I tried this few different ways to prevent submission on "enter" button but it doesnt work.
It doesn't even print submit string event when you press enter event.type().
is there way to prevent submission of the form when enter is pressed until answer is correct.
for example when you hit enter this handler is never called while on click it is.
thanks
$('#limesurvey').submit(function() {
  alert('Handler for .submit() called.');
  return false;
});
Last Edit: 2 years 10 months ago by stribor. Reason: adding
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.097 seconds
Donation Image