My HTML contains multiple div elements.
<div ng-click="remeber_gift({{gift.id}})">div1</div>
<div ng-click="remeber_gift({{gift.id}})">div2</div>
<div ng-click="remeber_gift({{gift.id}})">div3</div>
I am looking to add a hidden field to the clicked div using Angular.js and remove any existing hidden fields from other divs.
Is it possible to achieve this functionality with Angular.js? In jQuery, simply using .append would suffice.