Hello how I can limit the number of the generated inputs to 10 in this JavaScript example:
<script type="text/javascript">
var rowNum = 0;
function addRow(frm) {
rowNum ++;
var row = '<div id="itemRows"><label for="file_01">File 01</label><input type="file" name="file[]" multiple>';
jQuery('#itemRows').append(row);
}
function removeRow(rnum) {
jQuery('#rowNum'+rnum).remove();
}
</script>