“Remova o foco da entrada” Respostas de código

CSS remove o foco de entrada da borda

textarea:focus, input:focus{
    outline: none;
}
angro

JavaScript Remova o foco do botão

var element = document.getElementById('btnBuild');
element.setAttribute("disabled", "disabled");
Ganz404

HTML Evite o foco na entrada

<input type="text" id="yourID" value="test" readonly="readonly" /> 

You can change it in javascript with : 

document.getElementById("yourID").readOnly = false; //This enables the possibility to focus
Tartaud

Remova o foco da entrada

// Use focus() && blur() to add or remove focus.
import { useRef } from "react"

const inputRef = useRef()

// To remove focus: inputRef.current.blur()
// To focus: inputRef.current.focus()
<input ref='inputRef' {...value} />
Inquisitive Iguana

Remova a borda de entrada no foco

.bootstrap-select .form-control:focus {
    outline: 0px none #fff !important;
}

.bootstrap-select .form-control > div.filter-option:focus {
    outline: 0px none #fff !important;
}

.bootstrap-select .form-control > div.filter-option > div.filter-option-inner:focus {
    outline: 0px none #fff !important;
}

.bootstrap-select .form-control > div.filter-option > div.filter-option-inner > div.filter-option-inner-inner:focus {
    outline: 0px none #fff !important;
}
Letaïef Heni

Respostas semelhantes a “Remova o foco da entrada”

Perguntas semelhantes a “Remova o foco da entrada”

Mais respostas relacionadas para “Remova o foco da entrada” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código