MTSU uses course specifications like CSCI 4410-001. Here is a partial list of syntax rules for a MTSU course specification:
It starts with from 2 to 4 uppercase letters
Next comes a space
Next comes a 4-digit number
Next comes a hyphen (-)
Next comes a section number which is either a 3 digit number, or the letter H or L followed by a two digit number
Can you please write the code explanation as well to help me understand it better. Thanks
07-19-2013, 03:36 AM
Hmmmm, this is very homeworky
Looking at the question you need a form, the form submit option onSubmit="" needs a function called isCourse
Suggest that the function isCourse is written so it returns a value of true or false so when using it in the form onSubmit="return isCourse(this);" will cause the form to submit if true or if not true the form submit is ceased.
passing the generic object this will allow you to address the specific field you need to test in the form submit as "this" will be all the forms inputs and options lists, etc.
Your HTML file should contain your validation script and the form that you are going to use / validate.