title: change option value based on other dropdown PHP
body: <p>I have 2 simple dropdown list that if city dropdown selected have value "Balikpapan" its display specific option on service dropdown then if not its display other option :</p>
  
  <p>here's my function code :</p>
  
  <pre><code>function Kurir(){
      var kota = $('select[name="descity"] option:selected').text();
      kurir ='';
      kurir2='';
      if (kota == Balikpapan){
          kurir = '&lt;option selected="true" style="display:none;"&gt;Pilih Kurir&lt;/option&gt;&lt;option value="Kurir dalam Kota"&gt;Kurir dalam Kota&lt;/option&gt;';
          $('#service').html(kurir);
      else
          kurir2 = '&lt;option selected="true" style="display:none;"&gt;Pilih Kurir&lt;/option&gt;&lt;option value=""&gt;Pilih Kurir&lt;/option&gt;&lt;option value="jne"&gt;JNE&lt;/option&gt;&lt;option value="pos"&gt;POS&lt;/option&gt;&lt;option value="tiki"&gt;TIKI&lt;/option&gt;';
          $('#service').html(kurir2); 
      }
  }
  </code></pre>
  
  <p>and here's my dropdown code</p>
  
  <pre><code>&lt;td&gt;&lt;label for="kota"&gt;Kota&lt;/label&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;select id="descity" onchange="kurir();" class="" name=""&gt;
                       &lt;option value=""&gt;Pilih Kurir&lt;/option&gt;
                       &lt;option value="Balikpapan"&gt;Balikpapan&lt;/option&gt;
                       &lt;option value="Malang"&gt;Malang&lt;/option&gt;
                       &lt;option value="Surabaya"&gt;Surabaya&lt;/option&gt;
                    &lt;/select&gt; 
  
  &lt;td&gt;&lt;label for="Kurir"&gt;Kurir&lt;/label&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;select id="service" onchange="DestVal();PostProvCity();" class="" name=""&gt;
                       &lt;option value=""&gt;Pilih Kurir&lt;/option&gt;
                       &lt;option value="jne"&gt;JNE&lt;/option&gt;
                       &lt;option value="pos"&gt;POS&lt;/option&gt;
                       &lt;option value="tiki"&gt;TIKI&lt;/option&gt;
                    &lt;/select&gt; 
  </code></pre>