Currently, I am working with Bootstrap 4.3.1 and I have been attempting to place a submit button inside an input field. I have tried various methods from StackOverflow but haven't found a solution yet.
Since my input has the class rounded-pill
, it is necessary for me to position the button inside the input field itself.
Does anyone know how to achieve this?
@import url("https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css");
<div class="input-group col-md-4">
<input type="text" class="form-control rounded-pill" id="x__p__address__x" size="70" style="font-size:small" />
<span class="input-group-append">
<button type='submit' class="btn btn-primary rounded-circle">go</button>
</span>
</div>