1
I’d like to rule that out div
if the input
receive an empty value.
<div class="form-group col-md-2 usuario">
<label>Usuário:</label>
<input type="text" readonly class="form-control-plaintext"
id="usuario" value="<?php echo $rows['usuario']; ?>"
>
</div>
I tried to use the JQuery
, but excludes even if the field is filled in.
if ('input[value=""]') {
$('.usuario').remove();
}
faltou say at what moment you want to do this, is an event
onclick
,onblur
etc ... at what moment you wish to do so?– novic
When the page loads.
– Kaick Marques