0
I have a form. In this form I have two radiobutton with two options.
1) Questao 1 (Obrigatorio)
1 = Sim
2 = Nao
______________________
2) Questao 2(Obrigatorio)
1 = Vivo
2 = Morto
If this question 1 is = Yes Question 2 loses its obligation, it will be a mandatory question to be answered, but if it is = No, question 2 will return with the obligation.
Does anyone have any way to help me with this?
Thank you in advance.
So, I have a file called validacao.js in it I do the validations of the questions and masks etc as an example. $("#form-panel-Altahospitalar"). validate({ errorClass: "input-error", Rules: { dtahosp: "required", },
– Leonardo Macedo
You are using unobtrusive-validation? Or simply jquery-validate?
– brazilianldsjaguar
only the jquery-validate
– Leonardo Macedo