display ajax response in form input box |
Hi
I have got this json array from controller {"plan_id":"7","plan_title":"GOLD","plan_price":"999","resume_limit":"12000","day_limit":"364","job_limit":"20","user":"1","day_break":"0"} Now i want to display the values in the forms input I try this but it does not display the plan_price (999) in the input field document.getElementById("plan_price").value = data.plan_price; Please help
05-07-2017, 10:49 AM
(This post was last modified: 05-07-2017, 10:50 AM by natanfelles. Edit Reason: . )
Same question...
https://www.google.com/search?q=add+valu...javascript According to your attached image is possible see that your resume_limit is an object. Add console.log(data) after the variable data and check the responses.
i check with console.log it display value correctly, also the json values are showing correctly.
Still i am unable to display array[0] in 1st input box array[1] in 2st input box array[2] in 3rd input box array[3] in 4th input box Help is appreciated.
Take a look at this http://stackoverflow.com/questions/49684...s-brackets
Keep calm.
|
Welcome Guest, Not a member yet? Register Sign In |