Is there a way to prevent users from changing the selected input ?.
I have a form with an option already selected, and I want to know users that they do this, and I tried to do it
I have a choice with id = users,
$("#users").change(function(){
confirm("You are going to change the default value. Are you sure?");
});
One of the problems that I am facing is that this only happens if I click on a parameter, it does not happen as soon as I click on the select input.
Another thing is that it shows 2 times, is there a way to handle this?
And the last question, how can I do this after clicking the "Cancel" button in the confirmation window, it will not display a list of parameters, and if I click "accept", it should display the parameters.
I assume that I am trying to do this intermediate event between the fact that you are not doing anything and after the click event on this select.
Hope someone can help me.
Thanks in advance
Javier Q
source
share