In the last recipe, we validated empty fields. In this recipe, we will extend that behavior and will check for numbers along with empty fields.
Create a new folder
Recipe4 inside the
Recipe4folder. We will take the same code form as used in the previous recipe and will add another section to it. So, copy the code from the previous recipe to the
index.htmlfile. Now, we will add another section to it through which a user will be able to enter some numbers. Create another section named Other Details after the Personal section. It is important to note that these fields have another CSS class named