I have a school assignment where I'm designing a web page to include form entry. One of the parameters of the assignment is to validate a field where a user enters a name.(must be non-blank, must begin with a capital letter, and must contain at least one vowel and one consonant). As I'm learning the HTML part and not the JavaScript part, I'm allowed to use anything I find for the JavaScript so long as I cite the source. Can anyone help with this? I'm vaguely familiar with it but not nearly enough to "get it" on my own. To be clear, I am not seeking assistance with html, only the JavaScript function that meets the name parameter:
(must be non-blank, must begin with a capital letter, and must contain at least one vowel and one consonant)
Thank you for your help!