我想在刷新之前获得用户选择的最后一个选项
这是代码选择菜单:
<select name="category" id="category" onChange="BK.Ajax.Updates('newfile.php?id='+document.getElementById('category').value,'ajx');">
<option>.....</option>
<?
$sql_category=mysql_query("select * from category");
while ($row=mysql_fetch_array($sql_category))
{
echo "<option value='$row[id]'> ";
echo $row['name'] ;
echo "</option>";
}
?>
</select>
像这个例子 [http://jsfiddle.net/Lyxut/6/]