The error message returned when an idiot controls disabled in js.

Source: Internet
Author: User
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 .....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.