How can I make a dialog box open on click of button on swallow rendering.
It can be dynamically repeatable button as it is inside li.
//Code
var wrapper = $(this).parents(".file-upload-wrapper")[0];
$(wrapper).find('.attachment-button-div')[0].click(function() {
$(wrapper).find('.attachment-button')[0].trigger('click');
});
$(wrapper).find('.file-upload').change(function() {
$('input[type=text]').val($(this).val());
});
But it is not working as expected . Any suggestion.

you can try this. create buttons and corresponding invisible file input to each button. Add some jQuery to trigger/click corresponding invisible file input: