Get html ID components

I’m trying obtain id from html definitions of components, for usage with javascript file, but I don’t find how get id, this is possible?

Thanks