<script language="javascript">
fields = 0;
function addInput() {
if (fields != 20) {
document.getElementById('text').innerHTML += "<label for='item'>Item</label><input type='text' value='' name='item' id='item' style='margin-top:5px: width:200px;'/> Qty:<input type='text' value='' name='qty' id='qty' style='margin-top:5px; width:15px;' /><br />";
fields += 1;
} else {
document.getElementById('text').innerHTML += "<br />Only 20 items fields allowed. Please call for larger orders";
document.form.add.disabled=true;
}
}
</script> |