//html在输入框上提示,“必填信息”
<div class="col-sm-3">
<input type="text" id="codeName" name="codeName" value="" maxlength="64" class="form-control required" autocomplete="off" aria-required="true" aria-invalid="true">
<label id="codeName-error" class="has-error" for="codeName" style="top: 25px; left: 20px;">必填信息</label>
</div>