Answer the question
In order to leave comments, you need to log in
How to dynamically add file download buttons on click?
Good evening.
File selection button on the form.
<input type="file" name="file[]" multiple ng-files="getTheFiles($files)" />
<input ng-click = "addBtn()" class="mainform-btn-new" type="file" name="file[]" multiple ng-files="getTheFiles($files)" />
<div ng-bind-html="newBtn"></div>
$scope.newBtn = "<input ng-click = 'addBtn()' class='mainform-btn-new' type='file' name='file[]' multiple ng-files='getTheFiles($files)' />";
Answer the question
In order to leave comments, you need to log in
Found the solution www.shanidkv.com/blog/angularjs-adding-form-fields...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question