处理克隆的输入字段

时间:2017-03-13 18:31:53

标签: php

我已经克隆了项目中的输入字段,现在我只需要从这些字段中以某种方式获取信息。 有没有办法使用PHP获取值? 非常感谢您的帮助!

<html>
<body>
<head><title>Dividing</title></head>
<h1>Enter questions, and possible answers</h1>

<div id="quest">
<input type="text" name="question"><br><br>
<input type="text" name="answer"><br><br>
<button onclick="Clones()">add new question</button><br><br>
</div>


<script>
var counter=1;
function Clones(){
var element= document.getElementById("quest");
var clone=element.cloneNode(true);
clone.id=counter;
document.body.appendChild(clone);
counter++;
}
</script>
<button>End input</button><br><br>
</body>
</html>

0 个答案:

没有答案
相关问题