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
Automatic Filling & Web Post of (Website Form) using JavaScript code

I have this webpage ( http://reg.nid-moi.gov.iq/registersubmit ) and it contains a form that I would like to auto fill the data of the form by posting function according to the following function parameter in javascript code and source code of the page as the following : Webpage Sourcecode Script : webpage sourcecode script

enter image description here

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

0

There are different ways to do it.

<script>
// if you want to fill form on button click
function setInitailFormData(){
//getting the element you want to fill
 var inputName = document.getElementsById('inputName');
//setting up the value
 inputName.value = "Gohan"
}
//if you want to fill on component mount
window.onload = function setInitailFormData(){
//getting the element you want to fill
 var inputName = document.getElementsById('inputName');
//setting up the value
 inputName.value = "Gohan"
}
</script>
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!