I have this code:
$(document).ready(function()
{
$("#myBtn").click(function () {
if( $("#formulario input[name='radio']:radio").is(':checked')) {
$("#formulario").submit();
} else{
alert("Selecciona un metodo de pago.");
}
});
});
The problem is that the alert
is displayed when you hit the button to make the record while one is selected.
It works well up to that point.
Thanks for the help.