//hide and show answers
$(document).ready(function(e){

    function provide_feedback(is_correct, notice_text) {
      $.ajax({
        url: window.location.pathname + "/feedback",
        type: "POST",
        data: { correct: is_correct }
      })
        .done(function( data ) {
          if ( console && console.log ) {
            console.log( "Sample of data:", data.slice( 0, 100 ) );
          }
          $('#alert_text').text(notice_text);
          $('.alert').slideDown();
      });
    };

  //if you wish to keep both the divs hidden by default then dont forget to hide //them
  $("#answers").hide();
  $("#response").hide();

  $("#submit_answer").click(function(){
       $("#answers").fadeIn();
       $("#submit_answer").hide("slow");
       $("#response").fadeIn();
  });

  $('#respond-yes').click(function(e) {
    provide_feedback("yes", "Great! Congrats! Try another question.");
  });

  $('#respond-no').click(function(e) {
    provide_feedback("no", "No worries. You'll get it next time. Onwards!");
  });

});

//hide and show answers
$(document).ready(function(e){

    function provide_feedback(is_correct, notice_text) {
      $.ajax({
        url: window.location.pathname + "/feedback",
        type: "POST",
        data: { correct: is_correct }
      })
        .done(function( data ) {
          if ( console && console.log ) {
            console.log( "Sample of data:", data.slice( 0, 100 ) );
          }
          $('#alert_text').text(notice_text);
          $('.alert').slideDown();
      });
    };

  //if you wish to keep both the divs hidden by default then dont forget to hide //them
  $("#answers").hide();
  $("#response").hide();

  $("#submit_answer").click(function(){
       $("#answers").fadeIn();
       $("#submit_answer").hide("slow");
       $("#response").fadeIn();
  });

  $('#respond-yes').click(function(e) {
    provide_feedback("yes", "Great! Congrats! Try another question.");
    $('#response').addClass('hidden');
  });

  $('#respond-no').click(function(e) {
    provide_feedback("no", "No worries. You'll get it next time. Onwards!");
    $('#response').addClass('hidden');
  });

});

Remove yes/no answer check after submitted once
Remove yes/no answer check after submitted once
