Sourabh Choubey

Sourabh Choubey

  • NA
  • 236
  • 41.6k

how to store the value of all the text box in json array for

Feb 23 2018 9:18 AM
how to store the value of all the text box in json array forrmate using jquery and foreach with the json array
 
Rquirement
 
suppose i have two textbox one is for lat and other is for long
 
lattitue: here is your lattextbox  longitude:here is your longitudetextbox
lattitue: here is your lattextbox longitude:here is your longitudetextbox
lattitue: here is your lattextbox longitude:here is your longitudetextbox 
(this will generate after you click on add button so there will be button called addmore)
 
now what i have to do is i have to store all the value of lat and long in json array formate 
as
var json={lat:"22",
               long:"88"} ,{lat:"23",long:"89"},{lat:"24",long:"90"}
and then for loop with this structure 
 
the png file formate are given below in rar attachement 

Attachment: Untitled.rar

Answers (1)