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

117
Views
Send array value in radio button?

I have multiple array buttons, and i need to send the value as array instead of string. Is that possible ?

This is my array format:

['2022-02-02','2022-02-08']

This is my radio button:

{% for data in date %}
<input type="radio" name="date" value="{{data}}" required>
{% endfor %}

I get the response as

"['2022-02-02','2022-02-08']", but i need as 

['2022-02-02','2022-02-08']

So how to make radio to button to send data as array

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

0

Try using JSON.parse(). Take your string, str in this case, and do

let arr = JSON.parse(str)

arr should be your array.

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!