html5 - Dynamically add textbox in HTML Page through Angular JS -
i want dynamically add text-box in html page when user press button. , after want respective field value or field value.
i tried doing ng-repeat
not work. can tell me how achieve this.
i indeed use ng-repeat, , push new object onto array. maybe this?
<button ng-click="textfields.push("")">add</button> <textarea ng-repeat="val in textfields" ng-model="val"></textarea>
Comments
Post a Comment