html5 - Form validation -
I'm new to web development. I have a form and have to set up verification:
- Can not be empty and should print it down or on the same page
- The value of the last name of the input is printed in reverse.
- When the user has selected the week's favorite day, print the date of the next 6th edition of the day.
HTML
& lt; Form role = "form" & gt; & Lt; div class = "form-group" & gt; & Lt; Label for = "fName" & gt; First name & lt; / Label & gt; & Lt; Input type = "text" class = "form-control" id = "fName" placeholder = "first name" & gt; & Lt; / Div & gt; & Lt; div class = "form-group" & gt; & Lt; Label = "l name" & gt; Last name & lt; / Label & gt; & Lt; Input type = "text" class = "form-control" id = "lName" placeholder = "last name" & gt; & Lt; / Div & gt; & Lt; div class = "form-group" & gt; & Lt; Select ID = "Select" placeholder = "week's favorite day" & gt; & Lt; Option selected = "selected" & gt; & Lt; / Option & gt; & Lt; Option value = "ABC" & gt; Monday & lt; / Options & gt; & Lt; Option value = "DEF" & gt; Tuesday & lt; / Options & gt; & Lt; Option value = "hex" & gt; Wednesday & lt; / Options & gt; & Lt; Option value = "hex" & gt; Thursday & lt; / Options & gt; & Lt; Option value = "hex" & gt; Friday & lt; / Options & gt; & Lt; Option value = "hex" & gt; Saturday & lt; / Options & gt; & Lt; Option value = "hex" & gt; Sunday & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Div & gt; & Lt; / Form & gt;
If you explain your issues in detail then it would be very useful, It is difficult to answer everything like this. For general verification, you can go ahead and search for a guide.
Comments
Post a Comment