My problem is this and it is that this code:
$("#consultas").change(function(){
console.log("opcion2");
alert("Hola");
});
It works correctly in Firefox
but I do not know why not in Chrome
(In other browsers I have not tried). It is an event that I want to launch in a select
with classes of Bootstrap
, that is, in a project using jQuery
and Bootstrap
.
I have tried solutions that give on the web as:
$('#consultas').on('changed.bs.select', function (e, clickedIndex, newValue, oldValue) {
var selected = $(e.currentTarget).val();
});
The weird thing is that it works in one browser and not in another.