Correctly parse a json array and update a select box
$10-30 USD
Pagado a la entrega
Need someone to provide a fix for this issue.
Have a jquery script which updates a select box with a list of ISO codes and countries.
The ajax response from the script is shown below.
[{"GBR":"United Kingdom"}]
Below is the actual script use to add this to the select box
[url removed, login to view](function( data ) {
$.each(data, function(index,value) {
$('#select3')
.append($("<option/>", {
value: index,
text: value
}))
.selectpicker('refresh');
});
});
This should result in result in an an option being added to the select of <option value='gbr'>United Kingdom
instead all I get is [object Object].
What I need is a fix which correct parses the array returned.
(Note that only one country is shown returned here, but it could be a may be 8 or nine different)
Nº del proyecto: #5735788
Sobre el proyecto
13 freelancers están ofertando un promedio de $27 por este trabajo
Hello Sir , I can do this now please provide me a chance to work for you ......................Thanks
Hi, can fix the code so it will show the right ISO code in the select box. Can you show me the site? Thanks
Hi, I can do right now. Are you going to give the FTP or just the file so I can update it accordingly. Hope to work with you. Thanks
I would like to work on this project. I have 7 years of experience in open source technologies PHP/MySQL.
Hello, I got it, it can be fixed within the next few hours. do u have FTP access? r u going to award that Regards ========================= ========================= =========================
I am new freelancer here. But I have experiences before. so, let's discuss and I will do all my best for you. thanks.