In the code below:
angular.element(element).parent()
How can I access the ID of the parent? When if I do this:
console.log(angular.element(element).parent())
the console gives me below:
Use .attr()
/.prop()
method
angular.element(element).parent().attr('id')