Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

308
Views
when i clicked on button the border color change default in black color in html and css

I used a two-button when I clicked on that button div should be changed using javascript replaced the function the problem is when I click on the button border should be changed by default black color I could not find where it was added that I'm adding screenshots. it happened after I added on click replaced function when I clicked on that border color is black

<script>
        function replace(hide, show) {
            document.getElementById(hide).style.display = "none";
            document.getElementById(show).style.display = "block";
        }
    </script>
     <div class="two_btn">
            <div class="order_btn">
                <button type="button"  onclick="replace('div2','div1')">Order & Collect</button>
            </div>
            <div class="book_collection">
                <button type="button" onclick="replace('div1','div2')">Book UK Collection</button>
            </div>
        </div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It's an on-focus outline, automatically added by your browser. To remove it completely (not advisable), you can add this to your CSS:

button:focus {
  outline: none;
}

Why you should not do this and use a different approach instead:

https://www.a11yproject.com/posts/never-remove-css-outlines/

http://www.outlinenone.com/

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!