People, help me, please. I can't do normal script for form validation. I have 4 inputs in my form: "Name", "E-mail", "Theme", "Message". How to realize that if input is empty, the messages about which inputs are empty and which of them (it's about their values) aren't equal to regular expressions?
I have following regular expressions for my inputs:
1: /^[А-Яа-яЁё]+$/ - "Name" - one russian word in lower case or upper case
2: - "E-mail" - say, please, if there is something better than it
3, 4: /^[А-Яа-яЁё\W\s\d]+$/ - "Theme", "Message" - only russian words + all symbols allowed