Commit dc920129 authored by unknown's avatar unknown
Browse files

Removendo texto vermelho que fica abaixo dos campos informando quantos caracteres restam

parent 1a6f41bc
......@@ -12,8 +12,7 @@
<div class="form-group col-md-12" style="margin-top: 10px">
<label for="titulo" class="col-form-label" style="font-weight: bold">{{ __('Nome do Projeto') }} <span style="color: red; font-weight:bold">*</span></label>
<input id="titulo" type="text" class="form-control @error('titulo') is-invalid @enderror" name="titulo" placeholder="Digite o nome do projeto" value="" autocomplete="titulo" maxlength="255" >
<span style="color: red; font-size: 12px" id="caracsRestantestitulo">
</span>
@error('titulo')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
......
......@@ -208,18 +208,6 @@
<script>
$('input').on("input", function(){
var maxlength = $(this).attr("maxlength");
var currentLength = $(this).val().length;
var idInput = $(this).attr("id");
if( currentLength >= maxlength ){
$("#caracsRestantes"+idInput).html("Caracteres restantes: " + (maxlength - this.value.length));
}else if(currentLength == 0){
$("#caracsRestantes"+idInput).html("");
}else{
$("#caracsRestantes"+idInput).html("Caracteres restantes: " + (maxlength - this.value.length));
}
});
$( document ).ready( function () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment