Implementing A Microformat

Hi, I’m trying to implement the “cm-regexp” for an input that should follow this format “12-3456789”.

I’m following the format found here: Microformats — CS-Cart 4.0.x documentation. I have the code inserted at the bottom of the page that I’m trying to validate the field for. Not sure if that is the best place to put it. After hitting submit with the data in the input in the wrong format (123456789), no message or errors appears. Any help would be greatly appreciated. Thanks!

I was able to resolve my issue. Since I had inserted the “regexp” microformat at the bottom of my document, it was loading after the document had already loaded. I moved it to the top and everything worked as it should.