You can do the following,

let spans = document.querySelectorAll('kendo-grid-columnlist .k-checkbox-label');
let myElement = null;
spans.forEach(item => {
        if(item.innerText === 'Product Type') {
            myElement = item.parentNode.firstElementChild;
        }
});
console.log(myElement);

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top