1
To change the position of the error text in fields Select2. is appearing above the field, I want it to appear below! Any hint?
<!-- /field -->
<div class="col-md-3">
<div class="form-group">
<label class="control-label">SEXO
<span class="required"> * </span>
</label>
<select name="sexo" id="sexo" class="form-control select2" tabindex="9" required>
<?
if($Obj->sexo=="F") $sexo = "Feminino";
if($Obj->sexo=="M") $sexo = "Masculino";
?>
<optgroup label="">
<option value="<?=$Obj->sexo?>" selected > <?=$sexo?> </option>
</optgroup>
<optgroup label="...">
<option value="F">Feminino </option>
<option value="M">Masculino </option>
</optgroup>
</select>
</div>
</div>
<!-- /field -->
<!-- field -->
<div class="col-md-6">
<div class="form-group">
<label class="control-label">NOME COMPLETO
<span class="required"> * </span>
</label>
<div class="input-icon right"><i class="fa"></i>
<input type="text" autofocus onfocus="select(this);" id="nomecompleto" name="nomecompleto" minlength="3" maxlength="150" class="form-control jump"
value="<?=htmlspecialchars($Obj->nomecompleto)?>" required tabindex="2">
</div></div>
</div>
<!-- /field -->
Add the question the code used to help you
– Tmc
I believe it is a super simple error.. go to your html code in the sex input. copy the tag above it and pass it down, you should solve.
– Bsalvo
Also put the html of the full name field, to compare with the gender and see the position of the tags in each one.
– Renato Diniz
The code is only to innervate an asterisk! No effect has appeared, remains the same problem. I believe it must be something within the jquery form validation... but I don’t know where.
– Ricardo