如何从下拉列表中选择值之前获取更改的值?

问题描述:

大家好,

我想从删除按钮事件"的下拉列表中获取更改的值,以便当我选择某个值时,则应在删除按钮事件"中使用以前的值并将其从数据库中删除.

更准确地说,更改后的值表示在当前选定值之前.
请指导我该怎么做.

我想了两个小时,但找不到出路.

在此先感谢.

Hi All,

I want to get the changed value from the dropdown on a Delete Button Event so that when I select some value then previous value should be used in Delete Button Event and deleted from database.

To be more precise the changed value means which was before the current selected value.
Please guide me how can I do that.

I am thinking for two hours but unable to find a way out.

Thanks in Advance.

将所选值存储在全局变量中. Onchange将获得该值,然后将其立即更新为新的全局变量.
Store the selected value in a global variable. Onchange will get that value and will after that update the global variable to the new one now.