Description
Error Repor ng Div Sec on
To each form group I added the following div section which is used to display errors in the form group.
<div class=”formÂerror alert alertÂdanger” id=”userError”></div>
There is one of these in each form group and the id changes for each group to reflect which error it is reporting.
You will do the following error checking and stop the form from being submitted if all the error checks do not pass. You will also use these div’s to report errors to the user.
In the in class assignment you had to do the following. Use that git repository for all your work.
In case you missed the in‑class lab, here are the instruc ons to setup your repository.
- On gitlab, create a repository called 383Â1024Â<UID>Â<RandomFourCharacters> where uid is your uniqueid and <RandomFourCharacters> are four random characters. Eg: My repository would be called 383Â1024ÂcampbestÂAFTR
- Video showing steps to start git project.
- Make the following people developers on your project
- campbest
- liangs9
- moorem3
- hribalro
Clone this to your public_html/cse383 directory
Code Loca on ‑ must be in your git repository
https://miamioh.instructure.com/courses/80211/assignments/859926?module_item_id=1427162Â Â Â Â Â Â Â Â Â Â 1/2 12/22/2018Â Â Â Â Â Â Â 10-24 Assignment
If you did the inclass lab, use the same directory and git repository for this assignment. Simply create a new directory inside this project called formÂjquery and put your work in this directory.
Requirements
- Add appropriate messages to all the div.formÂerror tags that tell the user that this field is required. (do this in the tag, not via jquery).
- eg: <div class=”formÂerror alert alertÂdanger” id=”userError”>Required Field</div>
- Programmatically (eg; in $(document).ready, add onÂchange handlers to all form fields that will perform the following checks.
- user Â> not blank, at least 3 characters in the user name.
- if there is an error, give the user good feedback.
- Affiliation Â> one selected
- comment Â> not blank, no html tags (eg: no “<” characters), At least 3 words (eg: must have at least
2 spaces)
- Car  Not blank
- Favorite color  selected
- Programmatically add an onÂsubmit jquery handler that will make sure all the above checks are ok before allowing the submit to occur.
- Use good comments in your code
- Use good indentation in your code
- Your code must pass w3c validation
- Use good decomposition (eg: functions)
- Replace the simple comment at the top with your name, assignment…
- Submit a clickable link to Canvas that includes:
- A link to your gitlab project.
- A link directly to the html form page.