如何在弹出窗口中单击提交并在同一弹出窗口中显示新内容(文本,单选按钮,提交按钮)后隐藏内容(如文本,单选按钮和提交按钮)?
离。, 弹出窗口:
<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>
答案 0 :(得分:0)
有不同的方法,实现这一点的一种方法是使用JSON数据来获得不同的问题。通过Jquery / javascript,您可以在单击下一个按钮的同时构建表单。 这比使用“hide-show”
更好