簡體   English   中英

HTML多重選擇響應不起作用

[英]HTML muliple choice response not working

我剛開始是一個Web建設者,但遇到了一個問題。 我正在創建一個用於培訓的問答站點,但我對答案選擇的回答感到有問題,正確的答案沒有得到認可,批評家沒有在回答后出現。 提前謝謝。

碼:

<!DOCTYPE html> <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=768, initial-scale=1.0, target-densitydpi=device-dpi, maximum-scale=5.0, minimum-scale=0.5" /><link href="global.html.css" rel="stylesheet" /></head><body class="questions"> <section xmlns="http://www.w3.org/1999/xhtml" id="q001" data-type="Question"> <article class="question" data-answer="D"> <h1>Question 1</h1> <div class="presentation"> <div class="stimulus"> <p>Question stem --> Aunt May is sick with a medical history of who gives a care</p> </div><div class="layout q_mcq"> <div class="prompt"> <p>Question --> What are you going to do next?</p> </div> <div class="options"> <div class="option" data-ident="A"><span class="ident">A</span>Answer A </div> <div class="option" data-ident="B"><span class="ident">B</span>Answer B </div> <div class="option" data-ident="C"><span class="ident">C</span>Answer C </div> <div class="option" data-ident="D"><span class="ident">D</span>Answer D </div> </div> </div> <div class="answer"><div class="exposition"> <aside class="objective"> <h2>Educational Objective</h2> <p>Evaluate chest pain</p> </aside> <div class="critique"> <p>Point 1</p> <p>Point 2</p> <p>Point 3</p> <p>Point 4</p> </div> <aside class="keypoints"> <h2>Key Point</h2> <ul> <li>keypoint</li> </ul> </aside> <aside class="bibliography"> <h2>Bibliography</h2> <ul> <li>Bibliography</a></li> </ul> </aside> </div>

嘗試使用radio與按鈕autopostback設置為true或使用<form>元素提交的響應。

<input type="radio" value="A" name="Q1">Answer A</input>

要么

<form action="Validate.html">
   <input type="radio" name="Q1" value="A">Answer A <br/>
   <input type="radio" name="Q1" value="B">Answer B
</form>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM