Reputation: 135
I want to do is if i click the select box and the dropdown list show the blue
border-color of the dropdown list will be remove.
testing link: http://jsfiddle.net/5kcsn/316/
script:
$("input, select, textarea, form, button").css("outline", "none");
$("input, select, textarea, form, button").css("box-shadow", "none");
css:
option{
border-color: #ccc;
box-shadow: #ccc;
border: 1px solid #ccc;
outline:none;
}
Upvotes: 3
Views: 19979
Reputation: 11
option:focus, option:active {
box-shadow: none !important;
outline: none;
}
Upvotes: 1
Reputation: 4523
Do this:
input:focus, select:focus, textarea:focus, form:focus, button:focus {outline:0;}
Or This will remove it from all elements.
*:focus {
outline: 0;
}
Upvotes: 10
Reputation: 203
try this
option:focus{
background-color:#FFF;
outline:none;
border:none;
box-shadow:none;
}
Upvotes: 1