The error message returned when an idiot controls disabled in js. dear friends, I want to implement one of the multiple options. if you do not select BP & nbsp; JEPS, you cannot select BP & nbsp; JEPS & nbsp; Avec & nbsp; un & nbsp; UCC & nbsp; or BP & nbsp; JEPS & nbsp; Avec & nbsp; un & nbsp; US. currently, this is the case for multiple-choice code. could you tell me the JavaScript idiot's js control disabled problem.
Dear friends, I want to implement one of the multiple choices. if you do not select BP JEPS, you cannot select BP JEPS Avec un UCC or BP JEPS Avec un US. currently, this is the case for multiple-choice code. what should I do for ChangeStatut () in js?
For ($ I = 0; $ I
Echo" BP JEPS
";
Echo" Bp jeps Avec un UCC
";
Echo" Bp jeps Avec un CS
";
}
**************************************** **********************
I have written a few wrong. The main reason is that the for is not good. excuse me ??? How can I write it? thank you:
Function ChangeStatut (){
If (???. Checked = true ){???. Validation. disabled = false}
If (???. Checked = false ){???. Validation. disabled = true}
}
------------------------------------
PS: After the transfer page, you need to write $ diplome = $ _ POST [$ I. "_ diplome"] like this to get the parameter. share it:
------ Solution --------------------
Write like this
《script》
function ChangeStatut(e) {
var tags = document.getElementsByName(e.name);
for(var i=1; i
}
《script》
for($i=0;$i<4;$i++){
echo "
BP JEPS
";
echo "
BP JEPS Avec un UCC
";
echo "
BP JEPS Avec un CS
";
}