dynamically add uploading buttons

onclick multiple file uploading button,dynamically add uploading buttons <script> var i=6; function generateRow1() { if(i>35) { alert(“no more files are upload”); } else{ var d=document.getElementById(“div1″); d.innerHTML+=”<p><input type=’file’ name=’foods”+i+”‘ size=’6’>”; i++; return false; } return true; } </script> <input type=”file” checks=”min=1″ size=”6″ id=”fld_photo” name=”fld_photo”> <div id=”div”></div>