Form Jquery Instructions
User Manual:
Open the PDF directly: View PDF .
Page Count: 2

12/22/2018 10-24 Assignment
https://miamioh.instructure.com/courses/80211/assignments/859926?module_item_id=1427162 1/2
10‑24Assignment
Due Oct28by11:59pm Points 40
Submitting atextentrybox,awebsiteurl,orafileupload Available untilOct28at11:59pm
ThisassignmentwaslockedOct28at11:59pm.
Thiswillextendlastweek'sformlabbyhavingyouuseJQUERYtochecktheformsubmission.
Youcanworkwithyourowncodeoryoucanusemysolutionhere
(http://ceclnx01.cec.miamioh.edu/~campbest/cse383/cse383f18/form/).
ErrorReporngDivSecon
ToeachformgroupIaddedthefollowingdivsectionwhichisusedtodisplayerrorsintheformgroup.
<divclass="formerroralertalertdanger"id="userError"></div>
Thereisoneoftheseineachformgroupandtheidchangesforeachgrouptoreflectwhicherroritis
reporting.
Youwilldothefollowingerrorcheckingandstoptheformfrombeingsubmittedifalltheerrorchecksdonot
pass.Youwillalsousethesediv'storeporterrorstotheuser.
Intheinclassassignmentyouhadtodothefollowing.Usethatgitrepositoryforallyourwork.
Incaseyoumissedthein‑classlab,herearetheinstrucons
tosetupyourrepository.
1.Ongitlab,createarepositorycalled3831024<UID><RandomFourCharacters>whereuidisyour
uniqueidand<RandomFourCharacters>arefourrandomcharacters.Eg:Myrepositorywouldbecalled
3831024campbestAFTR
2.Videoshowingstepstostartgitproject.
3.Makethefollowingpeopledevelopersonyourproject
1.campbest
2.liangs9
3.moorem3
4.hribalro
Clonethistoyourpublic_html/cse383directory
CodeLocaon‑mustbeinyourgitrepository

12/22/2018 10-24 Assignment
https://miamioh.instructure.com/courses/80211/assignments/859926?module_item_id=1427162 2/2
Ifyoudidtheinclasslab,usethesamedirectoryandgitrepositoryforthisassignment.Simplycreateanew
directoryinsidethisprojectcalledformjqueryandputyourworkinthisdirectory.
Requirements
1.Addappropriatemessagestoallthediv.formerrortagsthattelltheuserthatthisfieldisrequired.(do
thisinthetag,notviajquery).
1.eg:<divclass="formerroralertalertdanger"id="userError">RequiredField</div>
2.Programmatically(eg;in$(document).ready,addonchangehandlerstoallformfieldsthatwillperform
thefollowingchecks.
1.user>notblank,atleast3charactersintheusername.
1.ifthereisanerror,givetheusergoodfeedback.
2.Affiliation>oneselected
3.comment>notblank,nohtmltags(eg:no"<"characters),Atleast3words(eg:musthaveatleast
2spaces)
4.CarNotblank
5.Favoritecolorselected
3.Programmaticallyaddanonsubmitjqueryhandlerthatwillmakesurealltheabovechecksareokbefore
allowingthesubmittooccur.
4.Usegoodcommentsinyourcode
5.Usegoodindentationinyourcode
6.Yourcodemustpassw3cvalidation
7.Usegooddecomposition(eg:functions)
8.Replacethesimplecommentatthetopwithyourname,assignment...
9.SubmitaclickablelinktoCanvasthatincludes:
1.Alinktoyourgitlabproject.
2.Alinkdirectlytothehtmlformpage.