I currently use one line of code to disable a select/select2 element:
$("#example1").prop("disabled", true);
The box or the element itself is greyed out visually. If I only use my mouse to just click on it, it will not open again. However if I click on the element and press spacebar, the list of options still appear and I am able to change the selection. So I am curious right now if there is a method to prevent users from making changes to a greyed out or disabled box?
here is a jsbin.