L
L
linikolay942020-09-11 02:12:29
React
linikolay94, 2020-09-11 02:12:29

React checkbox changing array and posting to server?

Question such I do the filter.
I send a request to the server to get a list of filters
, this looks like
0:
checked:0
id: 1
Country
1:
checked:0
id: 2
Country1

How can I change the data exactly id1 checked: 0 to 1 when I click on the checkbox or onclick button, After that send a post request.
the array itself
{ name: "country", type: "checkbox", items: array(30)} - in items I have all the filters.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question