Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. H

    JavaScript Disable clicking on answers in a quiz after making a choice

    Well never mind, I finally found a solution that works for me. This does what I need it to do - function disableChoicess() { const options = document.querySelectorAll('.choice'); options.forEach(option => { option.style.pointerEvents = 'none'; }); }
  2. H

    JavaScript Disable clicking on answers in a quiz after making a choice

    In my index page I have this- <div class="container"> <h1>Quiz Demo</h1> <div id="question"></div> <div id="choices"></div> <div id="result"></div> <button id="nextBtn">Next Question</button> </div> Then in the loadQuestion function the "buttons" are add as in my original post. here...
  3. H

    JavaScript Disable clicking on answers in a quiz after making a choice

    Hi, Working on a quiz app in Javascript and so everything is working except after I click on an answer I can keep clicking on the other answers. How do I prevent/disable the all answers once a choice is made ? In my loadQuestion function I add the question and possible answers, which there are...
Back
Top Bottom