javascript - I want to use the value on the radio button and press the screen as a score -


i want use value on radio button , press screen score. correct answer "dogru" , score 50 points. when press check button, score show alert on screen.

 <div class="col-md-4">               <p>which faster?</p><br><br>               <ul>                 <li><input class="sorular" type="radio" name="faster" value="dogru"> airplane</li>                 <li><input class="sorular" type="radio" name="faster" value="yanlis"> car</li>                 <li><input class="sorular" type="radio" name="faster" value="yanlis"> cheetah</li>                 <li><input class="sorular" type="radio" name="faster" value="yanlis"> bicycle</li>               </ul>           </div>            <div class="col-md-4">               <p>which slower?</p><br><br>               <ul>                 <li><input class="sorular" type="radio" name="slower" value="dogru"> turtle</li>                 <li><input class="sorular" type="radio" name="slower" value="yanlis"> tiger</li>                 <li><input class="sorular" type="radio" name="slower" value="yanlis"> cat</li>                 <li><input class="sorular" type="radio" name="slower" value="yanlis"> horse</li>               </ul>           </div>  <button onclick =" return !! ( checked () & check ())" id="kont" type="button" class="btn btn-default">check</button> 


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -