3
I know it’s possible to take the value of a select
selected with:
$("id option:selected").val()
But I was wondering if it’s possible to catch some select
is selected via event, for example when selecting a option
, trigger some function.
I think it would look something like:
$("#ProcessoId").on('select', function () {
alert("ooi");
});
Or:
$("#ProcessoId").on('selected', function () {
alert("ooi");
});
But until then I couldn’t make it work.
It is not clear what you want to do. You would like to define a different function for each value of
select
and, when selecting, perform the function corresponding to the selected value?– Leandro
I intend for the user to select from an option, fire something, it need not be different
– gabrielfalieri