Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3550
Stop value changing
posted

When a user wants to change a value, 

I want to alert the user on javascript.

based on the user respone, I want to stop the change of the  from happening.

so on the event SelectionChanging, i put the following function.

function SelectionChanging() {

var answer = confirm("Procceed?")
if (answer) {
return true;
}
return false;
}

But the value still changes, even if the user chooses no.

I also want to stop server event, of valuechanged/selectionchanged from happening