You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a problem with SwitchInput::RADIO, when I selected one of the radios from the Switchinput the default radio checked doesn't change on the action, in the image bellow you can see that I have selected the "Publico" state, but in the code the sate checked stay on the default (in this case "Borrador" state).
And when I try to get the state via Javascript or jQuery, I got nothing because the input neve change to the selected one.
Please help!
Thanks in advance.
My jQuery file: $(document).ready(function() { // Escuchar cambios en el radio button $('input[name="estado_publicacion[Estado]"]').on('change', function() { let selectedValue = $('input[name="estado_publicacion[Estado]"]:checked').val(); console.log("Estado cambiado a: ", selectedValue); // 0, 1 o 2 según la opción seleccionada }); });
The text was updated successfully, but these errors were encountered:
Hi, I have a problem with SwitchInput::RADIO, when I selected one of the radios from the Switchinput the default radio checked doesn't change on the action, in the image bellow you can see that I have selected the "Publico" state, but in the code the sate checked stay on the default (in this case "Borrador" state).
And when I try to get the state via Javascript or jQuery, I got nothing because the input neve change to the selected one.
Please help!
Thanks in advance.
My jQuery file:
$(document).ready(function() { // Escuchar cambios en el radio button $('input[name="estado_publicacion[Estado]"]').on('change', function() { let selectedValue = $('input[name="estado_publicacion[Estado]"]:checked').val(); console.log("Estado cambiado a: ", selectedValue); // 0, 1 o 2 según la opción seleccionada }); });
The text was updated successfully, but these errors were encountered: