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

132
Views
Not being able to edit an element top/left css attributes

So, I need to hide a duplicated entry when the 'All sectors' filter is selected but and drag the last entry to cover up the hole it leaves. I made this snippet of code below to do the described action. But it only works when ran from the browser console, it seems to ignore my instructions when put into the js file. I tried putting it in different places throughout the document but i've had no luck so far.

Snippet:

if (window.location.hash == '' || window.location.hash == '#'){
            accuGroup = $('a[href*="/en/company/accurate-group/"]').parent().hide()
            topval = accuGroup.css('top');
            leftval = accuGroup.css('left');
            lastArticle = $('article:last-child')
            lastArticle.css('top', topval);
            lastArticle.css('left', leftval);
        } else {
            accuGroup = $('a[href*="/en/company/accurate-group/"]').parent().show()
        }

You can find a live version here: https://novacap.test.whynotblue.com/en/company/

Additionally, you can find the entirety of the Javascript document here: https://novacap.test.whynotblue.com/js/main.js?202203021656

about 4 years ago · Juan Pablo Isaza
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!