Custom Element Set attributes

Hey team

I have this custom element as a form, however i am wanting to set attributes that are in the form like so: $w ( ‘#redirectForm’ ). attr ( “action” , “https://” + COMPANY_DOMAIN + “/recheckLogin.php” );

Is there a way to get custom element ID inside the element and set attribute, if not what would the best way to achieve this be?

almost like $w(customElement1).$w(#RedirectForm).setAttribute(‘’, ‘’);

class DataFormThing extends HTMLElement {

connectedCallback () {
this . innerHTML = ‘ ’
}
}

customElements . define ( ‘data-form’ , DataFormThing );