HTML:
<div class="input-group">
<input type="text" class="form-control" readonly="readonly" name="InvoiceTypeName" id="InvoiceTypeName">
<spsan class="input-group-addon btn-primary" for="InvoiceTypeName" "javascript: $('#InvoiceTypeName').click();">
<i class="fa fa-search" aria-hidden="true"></i>
</spsan>
</div>
.NET MVC
<div class="input-group">
@Html.EditorFor(model => model.DepName, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly" } })
<spsan class="input-group-addon btn-primary" for="DepName" "javascript: $('#DepName').click();">
<i class="fa fa-search" aria-hidden="true"></i>
</spsan>
</div>
效果
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/14f907379f10ef22a9bd621caef1a812.png)