Validar Caixa De SeleÇÃo
Started By
MastersRoX
, 07/03/2007, 13:14
14 replies to this topic
#1
Posted 07/03/2007, 13:14
ae galera!
como faço p validar uma caixa de seleçao do tipo:
<input name="aceita" type="checkbox" id="aceita" value="checkbox">
ja tentei varios codes.. nao achei nd aki no forum.
vlw !
como faço p validar uma caixa de seleçao do tipo:
<input name="aceita" type="checkbox" id="aceita" value="checkbox">
ja tentei varios codes.. nao achei nd aki no forum.
vlw !
#3
Posted 07/03/2007, 13:52
se ta selecionada ou nao..
se o cara clicar no botao submit .. e n tiver selecionada... da um alerta.. .se tiver selecionada... vai pro action do form.
se o cara clicar no botao submit .. e n tiver selecionada... da um alerta.. .se tiver selecionada... vai pro action do form.
#4
Posted 07/03/2007, 15:19
to meio apurado aqui, confira no developer.mozilla.org, em DOM:
(document.forms[nome_do_form].elements[nome_do_elemento].checked == true) ? alert("S") : alert("N");
WebFórum - Equipe de Desenvolvimento - Monitor
Yeah I do have some stories, and it's true I want all the glory ...
Yeah I do have some stories, and it's true I want all the glory ...
#5
Posted 07/03/2007, 16:25
tentei assim:
mas n funfo... fico com erro na pagina..
<script language="javascript"> function testa_check (qual) { var mensagem = (document.form1[[b]form1[/b]].elements[[b]checar[/b]].checked.checked == true) ? alert("S") : alert("N"); } </script> <form name="form1" method="post" action="index.php?i=2"> <input name="checar" type="checkbox"> <input name="Submit3" onclick="testa_check();" type="submit" class="campos" value="Continuar"> </form>
mas n funfo... fico com erro na pagina..
#6
Posted 07/03/2007, 16:50
veja ai meu rei:
<script language="javascript"> function testa_check () { if(form1.checar.checked == false){ alert("N");}else{form1.submit();} } </script> <form name="form1" method="post" action="index.php?i=2"> <input name="checar" type="checkbox" value="ON" > <input name="Submit3" onclick="testa_check();" type="button" class="campos" value="Continuar"> </form>
#7
Posted 07/03/2007, 17:39
É bem por aí mesmo:
Só precisa fazer o formulário parar a execução se não for checado, então acho melhor usar no onsubmit.
<script> var checa = { formulario : function(){ if(document.forms["form"].elements["op"].checked == true){ return true; }else{ return false; } } } </script> <form action="pagina.htm" method="post" name="form" onsubmit="return checa.formulario();"> <input type="checkbox" value="valor" name="op" />Ativar<br /> <input type="submit" value="Enviar" /> </form>
Só precisa fazer o formulário parar a execução se não for checado, então acho melhor usar no onsubmit.
WebFórum - Equipe de Desenvolvimento - Monitor
Yeah I do have some stories, and it's true I want all the glory ...
Yeah I do have some stories, and it's true I want all the glory ...
#8
Posted 08/03/2007, 11:51
vlw bimont... .fucionou!
#10
Posted 09/10/2017, 22:12
Viagra Milano achat levitra au usa Is Keflex An Antibiotic Cheapest Medications Online Levitra Medications
#11
Posted 25/10/2017, 10:59
Insuffisance Renale Generic Xenical Cheap No Prescription Abilify Price Non Prescription buy cialis Blue Mountain Canadian Pharmacy
Viagra Generico Por Internet Online Apotheke Viagra Ohne Rezept Be Tab Prednisone 5 Mg viagra online Cialis Immagini Online Zentel Pinworms In Germany Discount Cheapeast
Order Generic Propecia 1mg viagra Does Keflex Have Generic Cialis Infarto Keflex Foot Fungus
Viagra Generico Por Internet Online Apotheke Viagra Ohne Rezept Be Tab Prednisone 5 Mg viagra online Cialis Immagini Online Zentel Pinworms In Germany Discount Cheapeast
Order Generic Propecia 1mg viagra Does Keflex Have Generic Cialis Infarto Keflex Foot Fungus
#12
Posted 07/11/2017, 05:53
Trichomoniasis Zithromax canadian levitra Comprar Tadalafil Propecia Viagra Marche Pas Cialis 10 Mg Posologia
Nausea With Cephalexin Cordarone Amoxicillin Bioequivalence cheap cialis Purchase Generic Bentyl Dicyclomine Muscle Spasms Medication Tablet
Nausea With Cephalexin Cordarone Amoxicillin Bioequivalence cheap cialis Purchase Generic Bentyl Dicyclomine Muscle Spasms Medication Tablet
#14
Posted 05/12/2017, 21:34
Viagra Prix Moyen Side Effects Of Cephalexin For Dogs Is There A 100 Mg Cialis viagra Amoxicillin Dosage For Macaw Cephalexin Dose
Amoxicillin Allergic Reaction Rash Photo Internet Pharmacies Legal Mysearchdial buy viagra Online Pharmacy Kamagra Se Puede Tomar Alchol Con Septra Ds
Amoxicillin Allergic Reaction Rash Photo Internet Pharmacies Legal Mysearchdial buy viagra Online Pharmacy Kamagra Se Puede Tomar Alchol Con Septra Ds
#15
Posted 11/02/2023, 19:17
Other conditions such as gingivitis and teeth grinding can cause sensitivity to several or all your teeth propecia shampoo Finasteride treats BPH by blocking the body s production of a male hormone that causes the prostate to enlarge
purchase ivermectin for humans 5 and 6 that may reveal that chimeric mice could still have some inherent immunodeficiency compared with BALB c mice
However, the safety and efficacy of KETEK in treating clinical infections due to these microorganisms have not been established in adequate and well controlled clinical trials lasix dosage for dogs
purchase ivermectin for humans 5 and 6 that may reveal that chimeric mice could still have some inherent immunodeficiency compared with BALB c mice
However, the safety and efficacy of KETEK in treating clinical infections due to these microorganisms have not been established in adequate and well controlled clinical trials lasix dosage for dogs
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)