我有一个多项选择题列表:
<div class="question active">
<p>The first counting tool was the _____.</p>
<button class="btn-a">A) Stepped Reckoned</button>
<button class="btn-b">B) Abacus</button>
<button class="btn-c">C) Aba Zaba</button>
<button class="btn-d">D) Punch Card</button>
</div>
<div class="question">
<p>Who founded IBM and was responsible for tabulating the US Census with a punch card tabulator in only six weeks?</p>
<button class="btn-a">A) Jacquard</button>
<button class="btn-b">B) Hollerith</button>
<button class="btn-c">C) Mark I</button>
<button class="btn-d">D) Babbage</button>
</div>
如何触发这些按钮中的每一个以在键盘上提交相应的字母?
键盘只能处理.active
问题。
奖金:
是否可以允许两个键触发问题?例如,由于ABCD
在键盘周围隔开,因此允许QWER
或JKL;
对应以ABCD
使其易于单手键盘输入也可能是有帮助的。