I need to obtain the current element, to be able to manipulate the elements that surround it, but I do not know if that is possible with angularjs, as well as in jQuery that we can manipulate the DOM. Please if someone can help me.
I need to obtain the current element, to be able to manipulate the elements that surround it, but I do not know if that is possible with angularjs, as well as in jQuery that we can manipulate the DOM. Please if someone can help me.
I have captured this in angular as follows:
<button ng-click="capturar($event)">capturar</button>
$scope.capturar = function($event){
angular.element($event.toElement).parent();
}
angular.element
= works as $
of jQuery
$event.toElement
= works as this
I hope you serve, greetings!