JQUERY JSON FILLS 'undefined' in <select> option's! Why?

I attach you 2 files:

1-. The Template returning HTML with JQuery/AJAX CODE is:

{if $field_name eq 'State:name'}

{assign var="stateExist" value=true}

<p class="required id_state select">

<label for="id_state">{l s='State'} <sup>*</sup></label>

<select name="id_state" id="id_state">

<option value="">-</option>





<script type="text/javascript" charset="utf-8">

var ajaxurl = '{$ajaxurl}';



$('#id_state').change(function() {



type: "GET",

url: ajaxurl+"[url removed, login to view]"+$('#id_state').val(),

success: function(j) {


var options = '';

for (var i = 0; i < [url removed, login to view]; i++) {

// options += '<option value="' + j[i].optionValue + '">' + j[i].optionDisplay + '</option>';

options += '<option value=' + j[i].optionValue + '>' + j[i].optionValue + '</option>';

[url removed, login to view] (j[i].lat);


// $("select#id_c").removeData()








<div id='loadingmessage' style='display:none'>

<img src='[url removed, login to view]' width='50' height='50'/>

Cargando cuadras de tu provincia. Un momento...


<p class="required id_cuadra select">

<label "idc">{l s='Cuadra'}<sup>*</sup></label>

<select name="id_c" id="id_c">

<option value="1">San Martin, cuadra 6</option>



2-. [url removed, login to view] returns:

[{"optionValue":1,"optionDisplay":"ABELARDO GAMARRA","lat":"[url removed, login to view]","lng":"[url removed, login to view]","cont":"5"},{"optionValue":2,"optionDisplay":"ALEJANDRO AYARZA","lat":"[url removed, login to view]","lng":"[url removed, login to view]","cont":"1"},{"optionValue":3,"optionDisplay":"ANTARES","lat":"[url removed, login to view]","lng":"[url removed, login to view]","cont":"5"},{"optionValue":4,"optionDisplay":"ANTARES NORTE","lat":"[url removed, login to view]","lng":"[url removed, login to view]","cont":"2"},{"optionValue":5,"optionDisplay":"ANTARES SUR","lat":"[url removed, login to view]","lng":"[url removed, login to view]","cont":"1"},{"optionValue":6,"optionDisplay":"ANTON SANCHEZ","lat":"[url removed, login to view]","lng":"[url removed, login to view]","cont":"3"},{"optionValue":7,"optionDisplay":"ARMANDO FILOMENO","lat":"[url removed, login to view]","lng":"[url removed, login to view]","cont":"3"},

It seems to be ok, but when processed you get all undefined results! <literal> could make that?

When contacted me by chat I can give you url site to see with Firebug (console results to debud properly)!

Habilidades: Javascript, jQuery / Prototype, PHP

Veja mais: jquery select undefined, select option undefined jquery, jquery ajax select undefined, jquery class, jquery 1.2 3, jquery 1.11 2, jquery 1.11 0, jquery 1.11, html 5 with javascript code template, html 5 img, html 5 charset, jquery json ajax, jquery ajax json, ajax json jquery, val , select, norte, label template service, json script, JSON PHP

Acerca do Empregador:
( 0 comentários ) lima, Peru

ID do Projeto: #5310671

10 freelancers estão ofertando em média $27 para esse trabalho


A proposal has not yet been provided

$35 USD em 1 dia
(586 Comentários)

Hello, I would like to work on this project for you, I have done quite a lot of jquery/json projects and I can start working on it right now

$35 USD em 1 dia
(71 Comentários)

Dear Sir, I'm expert PHP Open Source developer. I have done a lot of projects which are based on Open Source Technologies. I can complete your project with full commitment and strict deadline. Let me know if yo Mais

$20 USD em 1 dia
(15 Comentários)

I know how to fix this. Important point is that I have fixed the same issue yesterday too . . . .ha ha..I can do this easily.

$20 USD em 1 dia
(29 Comentários)

Hello sir I am an expert in html, html5, css, php, jQuery, javascript, ajax, mysql and yii framework. Please give me a chance to work with you. Thanking you.

$30 USD in 0 dias
(20 Comentários)

Hi fotovoltaica, Can you give the link to you site that you've mentioned in your project description? Thank you. Kind regards pixelke

$30 USD em 1 dia
(6 Comentários)

Hi, I can help you with this [login to view URL] self Phpremedy and I am jquery game developer and an experienced Web developer .I can solve this issue within 10 [login to view URL] you are interested pls ping me now. portfolio : http://a Mais

$15 USD em 1 dia
(9 Comentários)

Hi, i have read your code and i know where the problem is and i can fix it witin an hour if you choose me for this task. ok just add this in success function j=$.parseJSON(j); :) Regards, Zain Basharat.

$15 USD in 0 dias
(6 Comentários)

Please let me check the code. Please accept the bid so that I can engage with your work. I will fix this asap. I will contact after solving the issue. Thanks updated: I think without getting access to the code I Mais

$25 USD em 1 dia
(0 Comentários)

i am familiar in jquery, ajax, javascript, html, css, php, mysql, bootstrap. i have 5 years experience in web development.

$35 USD em 1 dia
(0 Comentários)

Hi, This is amit. Expert in php,jquery. Can have a look. Kindly provide me with the website link for debug. Thanks, Amit

$30 USD em 1 dia
(0 Comentários)

Hi we are a team of freelance software developers, if you contact me at our website we can discuss the details of the project. w w w . so l v e r . i o

$25 USD em 1 dia
(0 Comentários)