jquery - Clicking on a radio to proceed Javascript Quiz -


ok, here go: creating javascript quiz. don't want use 'next' , 'back' buttons navigate through dynamic exam. instead, want able click answer choice, then, after clicking radio button answer choice, exam proceed next question automatically.

here's link code i'm using quiz: https://codepen.io/gcarino/pen/ldgtn/

and code programs 'next' button, should replaced answer choice:

   $('#next').on('click', function (e) {     e.preventdefault();      // suspend click listener during fade animation     if(quiz.is(':animated')) {               return false;     }     choose();      // if no user selection, progress stopped     if (isnan(selections[questioncounter])) {       alert('please make selection!');     } else {       questioncounter++;       displaynext();     }   }); 

thanks everything!


Comments