You can use square bracket operator on the .children property to access a child element with that ID string. The ID within the brackets will need to be minified.
let form = document.querySelector("form");
console.log(form.children["input-c"].value); // "bar"
Given:
You can use square bracket operator on the .children property to access a child element with that ID string. The ID within the brackets will need to be minified.