Solutions with the CSS outline property ¶ If you want to remove the focus around a button, you can use the CSS outline property. Remove href link.href = ''; // 4. Introduction to jQuery Disable Button. The button is playing a very important role in a web application. Going from gray to fully colored is an unpredictable change that can affect user expectations. You will easily be able to use this code with other jQuery implementations. Disable HTML anchor with CSS pointer-events: none. Because of that, they often match what users want to do. DISABLE TEXT HIGHLIGHT. You don’t need role="button" on