需要JQuery帮助:在更改事件之前,组合框中的哪个事件触发

需要JQuery帮助:在更改事件之前,组合框中的哪个事件触发

问题描述:

如果用户通过使用JQuery显示警报msg来选择已经选择的语言,我想限制用户。
在更改事件之前是否有任何事件触发。

I want to restrict the user if they select the language which is already selected by displaying alert msg using JQuery. Is there any event which fires before the change event.

我在这种情况下所做的是:

What I did in this kind of situation was:

在更改事件中,将现有值与新选择的值进行比较。
如果值在那里,我警告消息并将组合框重置为默认选择。

In Change event, compare the existing values with newly selected one. if value is there, I alert the message and reset the combo box to default selection.