I have a colour that appears on my input and textarea fields when they are focused:
This seems to happen in Chrome, but not Firefox.
I have tried to change the color with a bit of jQuery:
if ($('body').is('#contact')) {
$('input').focus(function() {
$(this).css('border', '2px solid #ce1443');
console.log('focus');
});
$('textarea').focus(function() {
$('textarea').css('border', '2px solid #ce1443');
});
}
However, this appears to only make the current border bigger...but it does nothing to get rid of the blue colour.
Assigning outline a value of 0 or none will remove the browser's default focus style. If an element can be interacted with it must have a visible focus indicator.
The blur() method removes focus from an element.
Use the outline: none
CSS property: http://jsfiddle.net/ZnefN/.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With