I’m figuring out how to add submit button when e-mail is valid from field, there a jsfiddle you can understand it:
It didn’t work because it doesn’t appear a submit button after of valid e-mail
Can anyone help me it?
thx!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your if and else conditions are the same, therefore the else won’t get executed until you remove the not (!). But then there’s the problem if the address matches your pattern but the user continues to type a valid email. Then multiple submit buttons are appended. You’d be best off just showing and hiding the button rather than constantly appending an element.
Try working off of a revision of your jsFiddle.