textarea:focus, input:focus{
outline: none;
}
input:focus {
outline: none;
box-shadow: none!important;
/*Sometime the blue border you see is from the box-shadow and removing box-shadow will remove the border*/
}
input:focus{
border: none;
}
.yourInput:focus {
outline: none;
}
var input = document.getElementById('myinput');
var message = document.getElementsByClassName('newone')[0];
input.addEventListener('focus', function() {
message.style.display = 'block';
});
input.addEventListener('focusout', function() {
message.style.display = 'none';
});
.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;
}
// 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} />
.newone {
display:none;
}
<div class="container">
<div class="row">
<input class="abc" type="text" id='myinput'/>
</div>
</div>
<div class="container">
<div class="row">
<span>some text here </span>
<span>some text here</span>
</div>
</div>
<div class="container newone">
<div class="row">
<span>some text here</span>
</div>
</div>
Run code snippet
Code Example |
---|
Css :: javascript read me text |
Css :: transition background gradient |
Css :: awesome font google icon colored css |
Css :: how to change selection color |
Css :: using float item got out of parent flow how to fix |
Css :: var minus scss |
Css :: all ipad Resolutio css |
Css :: css line spacing |
Css :: To make card box appear more bigger when hover |
Css :: css hero image |
Css :: css remove outline |
Css :: ionic input line color |
Css :: how bold text in css |
Css :: text-overflow: ellipsis; 2 line |
Css :: html table wrap text |
Css :: background fixed |
Css :: how to make border around text in html |
Css :: round 2 corners of div css |
Css :: horizontal scroll with css grid |
Css :: not checked css |
Css :: css background transparency or alpha mode |
Css :: center image |
Css :: for sass |
Css :: css border shorthand |
Css :: css_background_img |
Css :: border width css |
Css :: how to add a linear gradient in css |
Css :: align-self in css |
Css :: jquery add external css to head |
Css :: gradient text colors |