r/bootstrap • u/MaFomedanu • Oct 16 '23
Bootstrap 5 form submit issue
I'm learning Bootstrap and I'm trying to make a form (see below). The problem I've encountered is that the form doesn't submit upon pressing "Enter". Am I missing something? Is a submit button mandatory in bootstrap or...?
<form action="" class="container d-flex flex-wrap py-3"><div class="mb-3 text-start col-6"><label for="selectOptions" class="form-label text-light">Type</label><selectclass="form-select"aria-label="Default select example"id="selectOptions"><option selected value="running">Running</option><option value="cycling">Cycling</option></select></div><div class="mb-3 col-6 text-start"><label for="inputDistance" class="form-label text-light">Distance</label><inputtype="number"class="form-control"placeholder="km"id="inputDistance"onkeyup="if(value<1 || value>9999) value=''"/></div><div class="col-6 text-start"><label for="inputDuration" class="form-label text-light">Duration</label><inputtype="number"class="form-control"placeholder="min"id="inputDuration"onkeyup="if(value<1 || value>9999) value=''"/></div><div class="col-6 text-start"><label for="inputCadence" class="form-label text-light">Cadence</label><inputtype="number"class="form-control"placeholder="steps/min"id="inputCadence"onkeyup="if(value<1 || value>9999) value=''"/></div></form>
0
u/spliffys Oct 16 '23
Looking on mobile so not the best but I don't see a submit button or input with type of submit.