Hi, I am using jQuery for multiple file upload. Now my requirement is as follows:
1) I can create file element dynamically through javascript. 2) I need to apply the jQuery ability to add multiple file in newly created element. Below are my js files <script src="js/jquery.js" type="text/javascript"></script> <script src="js/documentation.js" type="text/javascript"></script> <link href="css/documentation.css" type="text/css" rel="stylesheet"/> <!--// plugin-specific resources //--> <script src="js/jquery.form.js" type="text/javascript" language="javascript"></script> <script src="js/jquery.MetaData.js" type="text/javascript" language="javascript"></script> <script src="js/jquery.MultiFile.js" type="text/javascript" language="javascript"></script> <script src="js/jquery.blockUI.js" type="text/javascript" language="javascript"></script> Code to add input file dynamically var td7 = document.createElement("TD") var newInputElem = document.createElement("INPUT"); newInputElem.type = 'file'; newInputElem.name = 'images[]'; newInputElem.className = 'multi accept-jpg|gif'; newInputElem.size = 5; td7.appendChild(newInputElem); Code for simple input file <input name="images[]" type="file" class="multi" accept="gif|jpg" size="5" /> The code works for simple input file, but when i create a dynamic input file I am not able to upload multiple file for that. Can you suggest me the way to find out the solution. Thanks, Jigar Mistry