Lets get to the problem as I allow open registration on my website(any one can open registration page) but I want only those people able to proceed who have a specific code (like "CDCode"). This is in a form and I want to check it on form Submit.
I know it is possible with onfocusout but javascript can be disabled so not a perfect solution.
I want some solution with pure HTML like with pattern attribute. So anyhow we can make pattern attribute match an exact string?