Row generation
Good morning all,
Is there a way to create a form that will automatically generate a new row after the first is filled but with "reason" for new row?
Thanks in Advance,
DJ Khalif
Good morning all,
Is there a way to create a form that will automatically generate a new row after the first is filled but with "reason" for new row?
Thanks in Advance,
DJ Khalif
If by row you mean input field, then you might want to kick off with something like:
<script type="text/javascript">
function checkField() {
var elementArray = document.forms[0].elements;
var i=0;
for (i=0;i<elementArray.length;i++) {
if (elementArray.value.length != 0) {
elementArray[i+1].style.display="block";
}
}
}
</script>
<form>
<input name="text1" type="text" onchange="checkField()">
<input name="text2" type="text" style="display:none;" onchange="checkField()">
<input name="text3" type="text" style="display:none;" onchange="checkField()">
<input name="text4" type="text" style="display:none;" onchange="checkField()">
</form>
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.