I have this:
<?php
$list = [];
$list = [1 => 'Aumento' , 0 => 'Disminución'];
echo $form->field($modi, 'aumento')->radioList($list)->label("<b>Seleccione acción a realizar</b>");
?>
And I need to get the value of the vector "$list" with a function in javascript, I have:
$('#modificaciones-aumento').change(function(){
var valor = $('#modificaciones-aumento').val();
alert(valor);
});
But it is not working, I've tried using the function "prop.("checked")" as well, but it did not work either.