I rewrite file input by code on: http://jsfiddle.net/b9rtk/ but when we click at dynamic button 'Add one more file' the JavaScript click()
(line 13) doesn't work.
How to use JavaScript click()
method (not jQuery) for dynamic created elements?
$('input[type=file]').on('change', function () {
code = '<fieldset>' + $(this).parents('fieldset').html()
.replace('Browse and select file', 'Add one more file') + '</fieldset>';
$(this).parents('fieldset').after(code);
});