0

单击提交后如何在弹出窗口中隐藏内容(如文本、单选按钮和提交按钮)并在同一弹出窗口中显示新内容(文本、单选按钮、提交按钮)?

例如,弹出窗口:

<b>Question 1 : </b> Vanessa and Brett had been arguing about their perceived 
proclivity to spend for hours together. What word describes the couple's predicament? <br>
<form name="quest" method="POST" action="">
  <p><input type="radio" value="Wrong" name="ans">Demarche </p>
  <p><input type="radio" value="Correct" name="ans">Impasse </p>

  <p><input type="radio" value="Wrong" name="ans">Mélange </p>
  <p><input type="radio" value="Wrong" name="ans">tête-à-tête </p>

<input type="submit" name="NEXT" value="Next">
</form>

单击下一步按钮后,应隐藏在表单上方并显示下一个表单,...

<b>Question 2 : </b> Vanessa and Brett had been arguing about their perceived 
proclivity to spend for hours together. What word describes the couple's predicament? <br>
<form name="quest" method="POST" action="">
  <p><input type="radio" value="Wrong" name="ans">Demarche </p>
  <p><input type="radio" value="Correct" name="ans">Impasse </p>

  <p><input type="radio" value="Wrong" name="ans">Mélange </p>
  <p><input type="radio" value="Wrong" name="ans">tête-à-tête </p>

<input type="submit" name="NEXT" value="Next">
</form>
4

1 回答 1

0

有不同的方法,一种方法是使用 JSON 数据来获取不同的问题。通过 Jquery/javascript,您可以在单击下一步按钮时为表单设置框架。这将是比仅使用“隐藏显示”的最佳方法

于 2013-09-26T10:40:12.323 回答