I am trying to add a time input mask (hh:mm) in a addElement 'text' type of an modal mform. None of the styling attributes worked, Bootstrap 4 masking attributes didn't work, and third party jquery libraries didn't work either. I'm sure there's a better way I'm not aware of or I'm doing something wrong.
I tried calling requiring the thirdparty jquery in the callback function and the mform but that doesn't seem right:
I tried adding these tags in my class that extends moodleform but that didn't work either: