How do I code the insert for this ?
I use the following code to enter data into a field. Then there is a button where additional input fields popup and data is entered.
<cfinput type="text" name="dateCode">
<div id="additionalDateCode"></div>
<input type="button" value="Add Additional Date Code" onclick="addDateCode()">
This is the corresponding javascript code for the button.
<script type="text/javascript">
function addDateCode() {
var input = document.createElement("input");
input.setAttribute("type","text");
input.setAttribute("name","dateCode");
input.setAttribute("required","yes");
input.setAttribute("size","30");
input.setAttribute("maxlength","200");
document.getElementById("additionalDateCode").appendChild(input);
document.getElementById("additionalDateCode").appendChild(document.createElement("br"));
input.focus();
}
</script>
The problem/question I am having is this :
How do I insert each entry/additional entries into a table ? I do not know how to do this.
Thanks
