I'm working on adding a Symbol to a textbox that needs to always be visible, without involving code behind (when accessing the value of the textbox). It should be like a glyphicon icon. I attempted using a span but it's not appearing the way I want it to.
This is my current code:
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon"><b>$</b></i></span>
@Html.TextBoxFor(m => m.AgreedValue, new { @class = "form-control", placeholder = "Agreed Value" })
</div>
Here is the current display:
https://i.sstatic.net/OeZ2S.png
And this is the desired display:
https://i.sstatic.net/fESR6.png
Is there something I am overlooking? Or how can I achieve the look in the second image?