How to add id tag to a button when html attribute is missing

I see, thats unfortunate.
Could you at least tell me how to do it like yang did here on this video on the post I linked?