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

432
Views
how to solve it so that when you click the button the box will hover like loading?

Previously, I have added hover and transition styles to the box. Well, then I thought of trying to add a button which when clicked would be the same as on hover without hovering the pointer over the box.

enter image description here

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Since there are no examples of your code, I will just give basic example.

You will need to create a function, something like this

 var element = document.getElementById("IdOfYourElement").style.color;
 function changeColor(){
  element = "blue"; // example 
 } 

And then, just call the function on your button, by adding

 onClick = "changeColor()" 
about 4 years ago · Santiago Gelvez 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!