Bootstrap button – remove outline on Chrome OS X

I see .btn:focus has an outline on it: .btn:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } Try changing this to: .btn:focus { outline: none !important; } Basically, look for any instances of outline on :focused elements — that’s what’s causing it. Update – For Bootstrap v4: .btn:focus { box-shadow: none; }

Set Focus After Last Character in Text Box

This is the easy way to do it. If you’re going backwards, just add $(“#Prefix”).val($(“#Prefix”).val()); after you set the focus This is the more proper (cleaner) way: function SetCaretAtEnd(elem) { var elemLen = elem.value.length; // For IE Only if (document.selection) { // Set focus elem.focus(); // Use IE Ranges var oSel = document.selection.createRange(); // Reset … Read more

How to change placeholder color on focus?

Try this, this should work : input::-webkit-input-placeholder { color: #999; } input:focus::-webkit-input-placeholder { color: red; } /* Firefox < 19 */ input:-moz-placeholder { color: #999; } input:focus:-moz-placeholder { color: red; } /* Firefox > 19 */ input::-moz-placeholder { color: #999; } input:focus::-moz-placeholder { color: red; } /* Internet Explorer 10 */ input:-ms-input-placeholder { color: #999; … Read more

How to detect when a tab is focused or not in Chrome with Javascript?

2015 update: The new HTML5 way with visibility API (taken from Blowsie’s comment): document.addEventListener(‘visibilitychange’, function(){ document.title = document.hidden; // change tab text for demo }) The code the original poster gives (in the question) now works, as of 2011: window.addEventListener(‘focus’, function() { document.title=”focused”; }); window.addEventListener(‘blur’, function() { document.title=”not focused”; }); edit: As of a few … Read more

Expand and give focus to SearchView automatically

You can also call to expandActionView() method in order to force it: @Override public boolean onCreateOptionsMenu( Menu menu ) { super.onCreateOptionsMenu( menu ); MenuItem searchMenuItem = menu.findItem( R.id.mi_search ); // get my MenuItem with placeholder submenu searchMenuItem.expandActionView(); // Expand the search menu item in order to show by default the query return true; } Search … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)