Hi
i would like to know to make the maximum input if someone click the button? mean if someone click the button he can just can add up to 5 with following code.
<script type = "text/javascript">
var counter = 0;
function AddFileUpload() {
var div = document.createElement('DIV');
div.innerHTML = '<input id="file' + counter + '" name = "file' + counter +
'" type="file" style="display:inline;margin-bottom:5px;" />' +
'<input id="Button' + counter + '" type="button" Class="beta-btn beta-btn-3d beta-btn-prussian beta-btn-medium"' +
'value="Remove" onclick = "RemoveFileUpload(this)" />';
document.getElementById("FileUploadContainer").appendChild(div);
}
function RemoveFileUpload(div) {
document.getElementById("FileUploadContainer").removeChild(div.parentNode);
}
</script>