RDV+DIAL chat illimit� dans ta r�g!
no save
Assistance
Achat
News

Forum | programmation
Activer un bouton sur case cochée
pyranhaz, le sam. 10 avr. 2004 à 06:17:22
Bonjour,

J'essai désespérément de faire fonctionner ce script...

Il doit en cochant la case, activer le bouton "inscription" mais UNIQUEMENT si la case est cochée...

Visiblement, il y a quelque chose qui cloche et je ne le trouve pas :-(


Au secours !!!


<script>
function Agree(Terms)
{
checkobj = Terms;
if(document.all||document.getElementById)
{
for(i=0; i<checkobj.form.length; i++)
{
var tempobj = checkobj.form.elements[i];
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled =! checkobj.checked;
}
}
}
</script>

<form action="Agree" method="post">
<input name="Agree" type="checkbox" onClick="Agree(this)"> J'accepte les Termes et Conditions<br>
<input type="submit" value="Inscription" onclick="window.open('http://www.paypal.com/cgi-bin/cmd?paye_ton_inscription_ici,'_Blank')" disabled>
</form>
</body>
</html>


sglug
avr. 04
Suivant
REPONSES
sglug
avr. 04
pyranhaz
avr. 04
SirHill
avr. 04
pyranhaz
avr. 04
hary
avr. 08
Version Web
Réalisé par RedShift
no save