I am using angular for our application. how to get the parent element of tag.
<button _ngcontent-ulk-c11="" class="btn cust-btn blm-cust-btn active" type="button" ng-reflect-klass="btn cust-btn blm-cust-btn" ng-reflect-ng-class="[object Object]"><i _ngcontent-ulk-c11="" class="blm-icon-grid"></i></button>
I have tried below but not working.
document.getElementsByClassName("blm-icon-grid").parentElement