I kinda get confused with using IDs. Can I use this code to add a hidden field? Where I’m using the same ID for the hidden field that I use in the “course” text field?
<div class="form-item left">
<label for="course"><span class="req">*</span>Course</label>
<input type="text" class="text" id="course" name="course" />
<input type="hidden" id="course" name="school" value="Contacted from Student
sign-up page" />
</div>
Thx
IDs must be unique in an HTML document. You should only use an ID once.
If you want to build some “connection” between the fields, consider using
classor adata-attribute.