Como Verificar Se O Radio Button Foi Ativado ?
#2
Posted 21/01/2004, 19:01
<script language="javascript">
<!--
function verifica() {
selecionado=document.getElementById("checar").checked;
if (selecionado) {
window.alert("Você selecionou o checkbox.");
}
else {
window.alert("Selecione o botão radio.");
return false;
}
}
//-->
</script>
<input type="radio" id="checar" name="verificar">
<br>
<button onclick="verifica();">Verificar</button>
Isso verificará se está ou não selecionado.
#3
Posted 25/10/2004, 21:48
#4
Posted 27/10/2004, 12:50
if(!selecionado)
#5 rOx4ever
Posted 18/12/2004, 11:31
<input name="Submit" onClick="return Valida()" type="submit" class="botao" value="Continuar">
como faço para adaptar os 2 ?!!
function Valida() {
if(document.forms['form'].elements['login'].value=='') {
alert("O campo login não foi preenchido");
return false;
}
}
+
<!--
function verifica() {
selecionado=document.getElementById("checar").checked;
if(!selecionado)
window.alert("Escolha seu sexo.")
}
}
//-->
</script>
ta certo a alteração do 2° code ae galera ?!?! do verifica()
#6
Posted 18/12/2004, 11:55
separe as funcoes com ponto e virgula ;<script>
<!--
function verifica() {
selecionado=document.getElementById("checar").checked;
if(!selecionado){
window.alert("Escolha seu sexo.")
}
}
//-->
</script>
<input name="Submit" onClick="return Valida(); verifica()" type="submit" class="botao" value="Continuar">
#7 rOx4ever
Posted 18/12/2004, 12:52
só troca getElementById pelo nome ?!?
#8
Posted 15/09/2017, 06:39
Tab Elocon 0.1% cialis buy online Inhaler Purchase United States
Mebendazole Birth Control With Out A Perscription Propecia Depakote
Cialis Contre Levitra <a href=http://cialtobuy.com>buy cialis</a> Cacdian Pharmacies Anitbiotics
#9
Posted 25/09/2017, 20:53
Viagra Leistungssteigerung cialis Amoxicillin Causes Hearing Amoxil Priligy Europe
#10
Posted 04/10/2017, 15:38
Real Acticin Express Delivery Pills Free Consultation Ed Meds In Canada viagra prescription Buy Stendra Online Vente De Kamagra En Espagne Cialis Generico En El Df
Levitra Funziona Cheapest Viagra Professional buy viagra online Is Lasix Hard On The Kidneys
#11
Posted 05/10/2017, 01:54
Combivir cialis Propecia Fuerte Articulo 149
Progesterone Hormone Replacement Sale Pharmacy Viagra Diventa Generico cheap cialis Cialis 2 5
#12
Posted 17/10/2017, 01:17
Generico Priligy (Dapoxetine) buy 10 mg levitra online Donde Comprar Cialis Fiable
#13
Posted 30/10/2017, 21:39
Prix Cialis Belgique cialis Reductil Acomplia Propecia Dove Posso Acquistare Cialis Generico
Prix Cialis Soft Propecia 15 Rebate Commander Kamagra Original viagra Differenza Tra Viagra E Levitra
#14
Posted 21/11/2017, 18:26
Ricetta Viagra Dei Poveri Baisse Prix Cialis Soft Maroc viagra Zyprexa Without Insurance Order Now Generic Stendra Mastercard Free Consultation
Priligy Anxiety Keflex Cellulitis Propecia 1mg Approved salzarex vardenafil Viagra Sur Internet Danger Free Sample Viagra Without Prescription
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)