jquery relatedSelects doesn't load second select
<p>here's my js</p>

<pre><code>$(function(){

            $("#frmPenerimaan").relatedSelects({
                onChangeLoad: 'ajax/penerimaan.php',
                defaultOptionText: 'Sila pilih',
                selects: {
                    'kategoriAkaun':        { loadingMessage:'Loading Jenis Akaun...' },
                    'jenisAkaun':       { loadingMessage:'Loading Nama Akaun...' },
                    'namaAkaun':        {}
                },
                onLoadingStart : function(jqxhr, settings) {
                    settings.url += '&amp;getAction=getKategoriAkaun'
                }
            });
        });
</code></pre>

<p>here's my html</p>

<pre><code>&lt;select name="kategoriAkaun" id="kategoriAkaun""&gt;some values here&lt;/select&gt;
&lt;select name="jenisAkaun" id="jenisAkaun"&gt;&lt;/select&gt;
&lt;select name="namaAkaun" id="namaAkaun"&gt;&lt;/select&gt;
</code></pre>

<p>and here's my php</p>

<pre><code>if ($getAction == "getKategoriAkaun"){
    $kategoriAkaun = htmlentities($_GET['kategoriAkaun'],ENT_QUOTES);
    $jenisAkaun = htmlentities($_GET['jenisAkaun'],ENT_QUOTES);
        $log   = KLogger::instance(dirname(__FILE__), KLogger::DEBUG);
if ($kategoriAkaun){
        $log-&gt;logInfo('Dlm kategoriAkaun');
        $lstKodAkaunJenis = array();

        $result=mysql_query("select kod,kodKhas,keterangan2 from kod_akaun_jenis order by kodKhas asc", $db);
        $i = 0;
        while($row = mysql_fetch_array($result)){
            $kod[$i] = $row['kod'];
            $kodKhas[$i] = $row['kodKhas'];
            $keterangan2[$i] = $row['keterangan2'];
            $lstKodAkaunJenis[$kod[$i]][$kodKhas[$i]]=$keterangan2[$i];
            $i++;
        }
        $log-&gt;logInfo('result1: '.json_encode( $lstKodAkaunJenis[$kategoriAkaun] ));
        echo json_encode( $lstKodAkaunJenis[$kategoriAkaun] );
    }

    if (($kategoriAkaun &amp;&amp; $jenisAkaun)){
        $log-&gt;logInfo('Dlm kategoriAkaun jenisAkaun');
        $lstNamaAkaun = array();        

        $result=mysql_query("select kodKhas,kodKhas2,keterangan3 from kod_nama_akaun order by kodKhas asc", $db);
        $i = 0;
        while($row = mysql_fetch_array($result)){
            $kodKhasB[$i] = $row['kodKhas'];
            $kodAwalB[$i] = substr($kodKhasB[$i],0,1);
            $kodKhas2B[$i] = $row['kodKhas2'];
            $keterangan3B[$i] = $row['keterangan3'];
            $lstNamaAkaun[$kodAwalB[$i]][$kodKhasB[$i]][$kodKhas2B[$i]]=$keterangan3B[$i];
            $i++;
        }

        $log-&gt;logInfo('result2: '.json_encode( $lstNamaAkaun[$kategoriAkaun][$jenisAkaun] ));
        echo json_encode( $lstNamaAkaun[$kategoriAkaun][$jenisAkaun] );
    }
</code></pre>

<p>here's the problem. when I select something from kategoriAkaun, select jenisAkaun will be populated based on what I chose from select kategoriAkaun, so of course relatedSelects work. so i selected some value from select kategoryAkaun, hoping next select namaAkaun will be populated... but it doesn't. i used klogger and found that in the 2nd last line</p>

<pre><code> $log-&gt;logInfo('result2: '.json_encode( $lstNamaAkaun[$kategoriAkaun][$jenisAkaun] ));
</code></pre>

<p>it echoes exactly what I expect will appear on select namaAkaun. in other words, it works, but only until this. the select namaAkaun doesn't get populated with the data. the select namaAkaun also stays disabled (which is the default behavior of relatedSelects that will disable unpopulated selects)</p>
