function (el) {
        return el.id ? el.id : el.parentElement ? findId(el.parentElement) : null;
    }
function (el) {
        return el.id ? el.id : el.parentElement ? findId(el.parentElement) : null;
    }
function ( el ) { return el . id ? el . id : el . parentElement ? findId ( el . parentElement ) : null ; }
Find the ID of the first parent element.
Find the ID of the first parent element .