0
所以我有一个选择选项字段,我会更改选择字段的确认信息选项。我的问题是如何在取消确认消息后防止更改选择字段的值。如何在使用jquery取消确认后防止更改选择选项?
$('.changeScoreFem').on('change', function(){
if (confirm('Are you sure to change this score?')) {
//continue to change the value
} else {
//else do not change the selecoption field value
}
});
的可能的复制[ jQuery防止改变选择](http://stackoverflow.com/questions/5426387/jquery-prevent-change-for-select) – Dekel