The error message returned when an idiot controls disabled in js. 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 page is transferred, you need to write $ diplome = $ _ POST [$ I. "_ diplome"]; to get the parameter.
Reply to discussion (solution)
Write like this
《script》function ChangeStatut(e) { var tags = document.getElementsByName(e.name); for(var i=1; i
BP JEPS
"; echo "
BP JEPS Avec un UCC
"; echo "
BP JEPS Avec un CS
"; }
Write like this
《script》function ChangeStatut(e) { var tags = document.getElementsByName(e.name); for(var i=1; i
BP JEPS
"; echo "
BP JEPS Avec un UCC
"; echo "
BP JEPS Avec un CS
"; }
Thank you! every time you get tired, I am so sorry .....