如何从下拉列表中选择值之前获取更改的值? [英] How to get changed value before selected value from dropdown?

查看:72
本文介绍了如何从下拉列表中选择值之前获取更改的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

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

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

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

在此先感谢.

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.


这篇关于如何从下拉列表中选择值之前获取更改的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆