Home >Backend Development >PHP Tutorial > 白痴的js控制disabled有关问题

白痴的js控制disabled有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:44:29859browse

白痴的js控制disabled问题.
各位大神,我想在这个多选里实现一个如果不选BP JEPS,就不能选BP JEPS Avec un UCC 或者BP JEPS Avec un US.目前多选的代码是这样,请问js里的ChangeStatut()要咋写呢?
for($i=0;$i  echo " BP JEPS

";     
             echo " BP JEPS Avec un UCC

";    
              echo " BP JEPS Avec un CS

";    
}
**************************************************************
我写了好几个都不对.主要是弄不好那个for,请问???处要如何写啊,谢谢各位了:

function ChangeStatut() {
if(???.checked == true) {???.validation.disabled = false }
if(???.checked == false) {???.validation.disabled = true }

}

------------------------------------
PS:在转交页后,需要这样写$diplome=$_POST[$i."_diplome"];才能得到参数的.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn