How we get all the attributes of nearest div of current element?
Loading
How we get all the attributes of nearest div of current element?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pasang TamangPosted Jan 26, 2023, 5:22 AM
Hi Naimish,
Did you try with angular.element()?. With angular.element() you can get the html element and using the closest you can get closest div. Please check below code example.
Regards,
Pasang