如何選擇隨機5個問題並顯示給用戶?如何選擇隨機5 TR並顯示給用戶?
其他問題應該隱藏在頁面中並只顯示5個問題。
我的示例代碼,我想當用戶加載頁面看到許多問題中的5個問題。
<form>
<table>
<tbody>
<tr id="Tr0">
<td>Question 1: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr1">
<td>Question 2: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr2">
<td>Question 3: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr3">
<td>Question 4: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr4">
<td>Question 5: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr5">
<td>Question 6: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr6">
<td>Question 7: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr7">
<td>Question 8: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr8">
<td>Question 9: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
<tr id="Tr9">
<td>Question 10: </td>
<td><input type="radio" value="True" /><input type="radio" value="False" /></td>
</tr>
</tbody>
</table>
</form>
你試圖從你身邊什麼? – 2014-10-30 08:45:55
你有什麼嘗試?你的問題到底是什麼?這個平臺不是爲你編寫代碼。 – k0pernikus 2014-10-30 08:46:20
@阿曼:看看我的回答。希望它能幫助你解決你的問題。 – SpiderCode 2014-10-30 09:05:35