Jump to content


Photo

Ativar/desativar Campo Texto


  • Faça o login para participar
10 replies to this topic

#1 ledinizz

ledinizz

    Turista

  • Usuários
  • 42 posts
  • Sexo:Não informado

Posted 02/10/2006, 14:28

Amigos, tenho no meu form alguns campos do tipo sim/nao onde pretendo ativar/desativar o campo texto conforme a escolha!

EX.:
<form method="POST">
	<p>Freqüenta Escola ?</p>
	<p><input type="radio" value="S" name="frequenta">Sim 
	<input type="radio" value="N" checked name="frequenta">Não</p>
	<p>Se sim Qual ? <input type="text" name="frequenta_qual" size="20"></p>
</form>

OBS.: Gostaria de mudar a cor do campo texto quando desativado.

Grato
Leandro
leandrooppen@hotmail.com
*************************************************************
Desenvolvo trabalhos FREELANCE.
ledinizz@gmail.com

#2 Alex Gotardi

Alex Gotardi

    Normal

  • Usuários
  • 62 posts
  • Sexo:Não informado

Posted 05/10/2006, 11:48

Amigos, tenho no meu form alguns campos do tipo sim/nao onde pretendo ativar/desativar o campo texto conforme a escolha!

EX.:

<form method="POST">
	<p>Freqüenta Escola ?</p>
	<p><input type="radio" value="S" name="frequenta">Sim 
	<input type="radio" value="N" checked name="frequenta">Não</p>
	<p>Se sim Qual ? <input type="text" name="frequenta_qual" size="20"></p>
</form>

OBS.: Gostaria de mudar a cor do campo texto quando desativado.

Grato
Leandro
leandrooppen@hotmail.com


tenta assim

<form method="POST">
	<p>Freqüenta Escola ?</p>
	<p><input type="radio" value="S" name="frequenta" onClick="sesim.style.display='block';">Sim 
	<input type="radio" value="N" checked name="frequenta" onClick="sesim.style.display='none';">Não</p>
	<div id="sesim" style="display:none">Qual ? <input type="text" id="frequenta_qual" name="frequenta_qual" size="20"></div>
	
</form>

Edição feita por: Alex Gotardi, 05/10/2006, 11:49.

"O amor seja não fingido" - Rm 12:9

#3 Rodrigo

Rodrigo

    oi!

  • Usuários
  • 995 posts
  • Sexo:Não informado
  • Interesses:Diretório de sites - http://www.acheinobrasil.com.br

Posted 05/10/2006, 13:53

Vê se funciona assim:

<script>
function habilita(num)
{
if (num=="S")
{
document.getElementById("frequenta_qual").disabled = false;
document.getElementById("frequenta_qual").style.background = "#DDFFDD";
} else {
document.getElementById("frequenta_qual").disabled = true;
document.getElementById("frequenta_qual").style.background = "#FFDDDD";
}
}
</script>

<form method="POST">
<p>Freqüenta Escola ?</p>
<p>
<input type="radio" value="S" name="frequenta" onchange="java script:habilita(this.value);">Sim
<input type="radio" value="N" checked name="frequenta" onchange="java script:habilita(this.value);">Não
</p>
<p>
Se sim Qual ?
<input type="text" name="frequenta_qual" id="frequenta_qual" size="20" disabled style="background: #FFDDDD;">
</p>
</form>



#4 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 15/09/2017, 07:38

Baclofene Facebook generic cialis Viagra Barata Medicamento Cialis Tabletas Keflex Side Effects In Dogs Cost Of Cytotec In Nuevo Laredo cialis Acquistare Kamagra Belgio
Priligy User Review online pharmacy Viagra Salud
Cialis 5 Mg Online Pharmacy Cost Of Propecia Propecia Discography
Kamagra Jelly For Sale <a href=http://cialtobuy.com>cialis buy online</a> Kamagra South Africa
Levitra Online Erfahrungen cialis Cephalexin Warnings Worldwide Levaquin Price Bewertung Levitra Propecia Itch Hair Loss cialis Levitra Consult

#5 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 10/10/2017, 19:07

Cialis Duracion Efecto Forum Cialis Ligne viagra cialis Amoxicillin And Yellow Tablets Cialis Usa Pharmacy Vente Xenical

#6 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 27/10/2017, 23:28

Pyridium 200mg Urinary Burning Acheter Priligy De Canada viagra Achat De Viagra Sur Le Net En Chambery

#7 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 28/10/2017, 07:16

Erex Professional Von Sildenafil generic viagra Cipro Keflex Levitra 10 Mg Con Alcohol What Do You Use Amoxicillin For
Cs Online Support24 online pharmacy Orlistat Diet Pill

#8 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 28/10/2017, 20:57

Buy Amitriptylin With No Prescription Viagra Indicaciones Efectos Provera Amex online pharmacy Need Direct Amoxicilina Canada Cheapeast Cash On Delivery Kamagra Legit
Viagra Nur Auf Rezept Cialis Per Ipertensione viagra Cephalexin To Treat Bronchitis Frontal Hair Rogaine And Propecia Best Price Drugs 24
Cheap Nexium Prescriptions Order Citalopram No Rz Articulo 166 viagra Zithromax 5 Day Z Fast Shipping Viagra Online

#9 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 29/10/2017, 07:19

Pharmacies That Ship To The Us viagra prescription Cytotec Misoprostol Buy Online

#10 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 13/11/2017, 00:43

Amoxicillin And Gallstones cheap levitra canada Proven Ways To Last Longer In Bed Online Secure Progesterone Medicine No Prescription Needed
Direct Worldwide Progesterone Best Website In Canada Cheapeast Sinusitis 2000 Mg Keflex viagra prescription Buy Cheap Propecia Uk Cialis 20 Mg Einnehmen Cialis Prix En Pharmacie Marseille
Dapoxetina Risultati Necesita Receta Comprar Propecia viagra Where To Buy Stendra Erectile Dysfunction Buy Propecia Online From Canada

#11 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 11/02/2023, 23:19

2018; 22 4935 47 ivermectin for goats
The generation of cki Ezh2 fl mice, carrying the conditional ROSA26 Ezh2 allele, is described in Supplementary Information female viagra over the counter
Does he do it for prestige propecia 5mg




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq