If you can help me, I want that when writing in the select2 search box it automatically changes to uppercase I have no code to teach because I have searched and found nothing about it I attach an image
I put the inputs in automatic capital letters with onkeyup and I call the following function and I would like to do it in the select2
function mayus(e) {
e.value = e.value.toUpperCase();
}