根据选择的选项,我有不同的费用。如何获得这个值?代码是:
.................
{if $value_selected == 5}
{$taxa_transport = 5}
{/if}
<td>Valoare transport:</td><td>{$taxa_transport} lei</td>
....................
<select id="id_judet" onchange="getLocalitati($(this).val())">
<option value="-1">-</option>
<option value="0">Alba</option>
<option value="1">Arad</option>
<option value="2">Arges</option>
<option value="3">Bacau</option>
<option value="4">Bihor</option>
<option value="5">Bistrita-Nasaud</option>
<option value="6">Botosani</option>
<option value="7">Braila</option>
<option value="8">Brasov</option>
......................................
如何获取 $value_selected 的值?