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

139
Views
Getting values of text field which are in associative array form

I have below text fields with names as associative array. How can i get value of these fields in javascript and pass it in jquery.

<input id="personNameAlt" name="call[1][name]" value="" type="text" class="field">
<input id="personNameAlt" name="call[1][email]" value="" type="text" class="field">


<input id="personNameAlt" name="call[2][name]" value="" type="text" class="field">
<input id="personNameAlt" name="call[2][email]" value="" type="text" class="field">

<input id="personNameAlt" name="call[3][name]" value="" type="text" class="field">
<input id="personNameAlt" name="call[3][email]" value="" type="text" class="field">
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The old way from Netscape, who is the inventor of Javascript, is still valid:

document.forms[0].elements["call[1][name]"].value

What you need, you just have to wrap your input fields into a form tag.

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!