Empty input handling
This commit is contained in:
40
index.html
40
index.html
@@ -30,25 +30,29 @@
|
||||
<a href="https://registrar.utexas.edu/schedules">official course name</a>
|
||||
as possible
|
||||
</p>
|
||||
<!-- Data is separated into course number, course prefi;x, and course name-->
|
||||
<label for="courseField">Course Field (Ex: "MUS"):</label>
|
||||
<input type="text" id="courseField" name="fname"><br><br>
|
||||
<label for="courseNum">Course Number (Ex: "307"):</label>
|
||||
<input type="text" id="courseNum" name="fname"><br><br>
|
||||
<label for="courseName">Course Name (Ex: "Jazz Appreciation"):</label>
|
||||
<input type="text" id="courseName" name="fname"><br><br>
|
||||
<label for="courseInstructor">Instructor (Optional)</label>
|
||||
<input type="text" id="courseInstructor" name="fname"><br><br>
|
||||
<form>
|
||||
<label for="dropdown">Semester (work in progress):</label>
|
||||
<select id="dropdown" name="dropdown">
|
||||
<option value="option1">Fall 2022</option>
|
||||
<option value="option2">Spring 2022</option>
|
||||
<option value="option3">Fall 2021</option>
|
||||
</select>
|
||||
<br><br>
|
||||
<form action="">
|
||||
|
||||
<!-- Data is separated into course number, course prefi;x, and course name-->
|
||||
<label for="courseField">Course Field (Ex: "MUS"):</label>
|
||||
<input type="text" id="courseField" name="fname" required><br><br>
|
||||
<!-- <label for="courseNum">Course Number (Ex: "307"):</label>
|
||||
<input type="text" id="courseNum" name="fname"><br><br> -->
|
||||
<label for="courseName">Course Name (Ex: "Jazz Appreciation"):</label>
|
||||
<input type="text" id="courseName" name="fname" required><br><br>
|
||||
<label for="courseInstructor">Instructor (Optional)</label>
|
||||
<input type="text" id="courseInstructor" name="fname"><br><br>
|
||||
<button type="submit" id="subBut">Submit</button><br><br>
|
||||
|
||||
<form>
|
||||
<label for="dropdown">Semester (work in progress):</label>
|
||||
<select id="dropdown" name="dropdown">
|
||||
<option value="option1">Fall 2022</option>
|
||||
<option value="option2">Spring 2022</option>
|
||||
<option value="option3">Fall 2021</option>
|
||||
</select>
|
||||
<br><br>
|
||||
</form>
|
||||
</form>
|
||||
<button type="submit" id="subBut">Submit</button>
|
||||
</div>
|
||||
<script src='main.js'></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user