Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

data showing in single option instead of multiple option from json array

for (const district of value.districts) {
  $("#cityPicker").append('<option value="' + district + '">' + district + '</option>');
}
 
PREVIOUS NEXT
Tagged: #data #showing #single #option #multiple #option #json #array
ADD COMMENT
Topic
Name
7+4 =