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

229
Views
How do I get a div to appear after a page refresh

I have a calculator made up of two parts, the entry and then the results. The results link to a google sheet and need a couple of seconds to run.

Initially I had this working by making it two steps - when the button was clicked the results appeared on another page - which worked.

I now need to try and get both on the same page.

Is there a way I can keep the div #results hidden, until the page is when the button is clicks refreshed?

https://codepen.io/jameswill77/pen/PoROgvM

<div class="calculator" data-calc-id="Lyh7nBH9MiharKMDu" data-type="framed"></div>
<script src="https://scripts.convertcalculator.com/embed.js" async="true"></script>

<div id="results" class="results-style">

<div class="calculator" data-calc-id="ogNjyteRSgnEHv6Ps" data-type="framed"></div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<canvas id="myChart"></canvas>
  
</div>

<script src="https://scripts.convertcalculator.com/embed.js"></script>
<div class="calculator" data-calc-id="Lyh7nBH9MiharKMDu" data-type="framed"></div>
<script src="https://scripts.convertcalculator.com/embed.js" async="true"></script>

<div id="results" class="results-style">

<div class="calculator" data-calc-id="ogNjyteRSgnEHv6Ps" data-type="framed"></div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<canvas id="myChart"></canvas>
  
</div>

about 4 years ago · Santiago Trujillo
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!