I am experiencing an issue with my Bootstrap 4 form. I am using the 'form-group row' class to display labels and inputs on the same line, but when I try to prepend a $ sign before an input, it shifts the input to the next line.
Below is the code snippet:
<link href= "https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="form-group row">
<label for="msrp" class="col-sm-2 col-form-label text-right">MSRP</label>
<div class="col-sm-10">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input onBlur='this.value = parseFloat($(this).val()).toFixed(2)' type="number" step="0.01" class="form-control" name="msrp" required>
</div>
</div>
This is how my output looks: See screenshot here
I have tried various solutions found online without success. If anyone could assist in keeping the label and input on the same line while adding the $ sign before the input, I would greatly appreciate it.