Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css remove border input focus

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

css input remove border on focus

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*/
}
Comment

hide input border on focus

input:focus{
    border: none;
}
Comment

remove input border on focus

.yourInput:focus {
	outline: none;
}
Comment

input:focus show hide div

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';
});
Comment

remove input border on focus

.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;
}
Comment

remove focus from input

// 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} />
Comment

input:focus show hide div

.newone { 
  display:none;
}
Comment

input:focus show hide div

<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
Comment

PREVIOUS NEXT
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 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =