html += "<table><tr><td> <label for='id_first_name' ><b>Timezone:</b></label> </td>";
html += '<td><select id="timezone" name="nodes" style="width:300px;margin:5px;">';
{% for tz in all_timezones %}
if('{{tz}}' == 'Asia/Calcutta')
html+='<option value="{{tz}}" selected>{{tz}}</option>';
else
html += '<option value="{{tz}}">{{tz}}</option>';
{% endfor %}
html += '</select>';
html += "</td> </tr>";
</script>
现在,当我想编辑,我知道存储于前值。而且让说,作为亚洲/曼谷如何得到这个值来选择 为例
var edit_val="Asia/Bangkok"
$("#timezone selected val[edit_val]")//Sumthing like this
In the drop downlist i want this value to be selected
请给出更多的代码,并尝试给我们一个更大的问题的看法 – netadictos 2010-10-20 14:16:43