function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
beingofhabitsbeingofhabits 

How to find required inputs on the component?

Attempted to solve this, using the following code:
Array.from(document.querySelectorAll('[required]'))


but it returns an empty array insted. Is there any beautiful solution, 'cause the only one I think about right now, is to use html classes and it seems to be a bad idea.

Any ideas, please