微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Wordpress的多步骤高级表单

如何解决Wordpress的多步骤高级表单

我必须创建表单,而无需通过几个步骤即可刷新页面。我用divi编写了代码。我不为此表格使用插件

第一步,用户可以选择一个或几个图像。每个图像均具有单独的形式,但在同一页面上。我有一些代码,但是我不知道如何发送有关选择哪个图像用户以及下一步如何以正确的顺序正确的步骤形式发送信息。

在示例中,用户选择图像2和5,并且当单击“下一步”按钮时,看到表格2和5。仅表格2-5中的内容为例。

您对这些问题有想法吗?

欢呼

<script>
 function choosenoptions(){
    if click 
 }
 
 
 function endPhase() {
 
 }

</script>

<form id="multiphase" onsubmit="return false">

<div id="phase1">

<div class="checkBox-wrapper">
<input type="checkBox" name="option1" id="option1"/>
<img src="img/blah1.png"/>
</div>

<div class="checkBox-wrapper">
<input type="checkBox" name="option2" id="option2"/>
<img src="img/blah2.png"/>
</div>

<div class="checkBox-wrapper">
<input type="checkBox" name="option3" id="option3"/>
<img src="img/blah3.png"/>
</div>

<div class="checkBox-wrapper">
<input type="checkBox" name="option4" id="option4"/>
<img src="img/blah4.png"/>
</div>

<div class="checkBox-wrapper">
<input type="checkBox" name="option5" id="option5"/>
<img src="img/blah5.png"/>
</div>
<button onclick="processphase1()">Next</button>

</div>


<div id="phase2">

<label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname">

</div>
<button onclick="processphase2()">Next</button>

</div>


<div id="phase3">

<label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname">
<button onclick="processphase3()">Next</button>
</div>




<div id="phase4">

<label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname">
<button onclick="processphase4()">Next</button>
</div>



<div id="phase5">

<label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname">
<button onclick="processphase5()">Next</button>
</div>


<div id="endPhase">

<label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" name="lname">
<button onclick="endPhase()">Submit</button>
</div>

</form>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?