i am using this below addElement() function to create the file element dynamically
Code:
function addElement( filename,businessName ){
// Make sure it's a file input element
//if( element.tagName == 'INPUT' && element.type == 'file' )
{
var textdiv = document.createTextNode('SER file to upload:');
var new_element = document.createElement( 'input' );
var divdetails