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

247
Views
Javascript: Access Hidden Text Field by ID does not work on this site. Any idea why?

Need to fill a textfield from a form but can't access the field. My script repeats all 6 seconds so as soon as the input field is visible it should be found?

Any idea? Thanks everyone

script:

    $(document).ready(function() {
var a = document.getElementById("field_7");
var b = document.getElementById("postbox-container-1");
if(a)
  console.log("field_7 exists");
else
  console.log("field_7 does not exist"); 
if(b)
  console.log("postbox-container-1 exists");
else
  console.log("postbox-container-1 does not exist");

setTimeout(arguments.callee, 6000);

})();

HTML:

<div class="required zip-code control-group active valid">
<label class="control-label" for="field_7">Postal code / ZIP</label>
<div class="controls" name="controls"><input maxlength="10" type="text" id="field_7"></div></div>

After Page load the input field is hidden but available in the code

After a Button Click the input field is visible but still can't be fetched with ym script which repeats all 6 seconds

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!