need to
create a html page form with text field and submit button - eg: <form><input type="text"> <input type="submit"></form>
when you submit a text from form, need to search from .json file and display results on <div > on same page..
this is the .json file if i submit "adam" from form need to display adams name,telephone,fax,address on <div on same page>
please anyone help me to do this
{"personal-details":{
"preson1":{
"name": "aaa",
"telephone": "0112454545"
"fax":"6666"
"address":"5,sasasas,ghgh"
},
"preson2":{
"name": "ssss",
"telephone": "011676767"
"fax":"777777"
"address":"tttttttttttttttttttttttttttt"
},
"preson3":{
"name": "ddddddd",
"telephone": "011898989"
"fax":"888888"
"address":"1,ghghghgh"
},
}}
create a html page form with text field and submit button - eg: <form><input type="text"> <input type="submit"></form>
when you submit a text from form, need to search from .json file and display results on <div > on same page..
this is the .json file if i submit "adam" from form need to display adams name,telephone,fax,address on <div on same page>
please anyone help me to do this
{"personal-details":{
"preson1":{
"name": "aaa",
"telephone": "0112454545"
"fax":"6666"
"address":"5,sasasas,ghgh"
},
"preson2":{
"name": "ssss",
"telephone": "011676767"
"fax":"777777"
"address":"tttttttttttttttttttttttttttt"
},
"preson3":{
"name": "ddddddd",
"telephone": "011898989"
"fax":"888888"
"address":"1,ghghghgh"
},
}}
Last edited: