e ai galera blz...? é o seginte to querendo fazer um esquema assim...
eu tenho dois radiobuttons um que é assinante e outro que é ñ assinante
ai eu tenho logo abaixo desse radiobutton um textarea que eu queria fazer assim quando clica-se em um dos textarea parecia um texto quando clica-se no outro textarea aparecia outro texto...
se alguem souber como me ajudar eu agradeço
Carregar
Started By Holy Demons, 17/10/2005, 11:44
3 replies to this topic
#1
Posted 17/10/2005, 11:44
#2
Posted 17/10/2005, 12:01
Coloca um onclick e cada um e manda jogar texto no textarea.
document.getElementById("textarea").innerHTML = "texto";
document.getElementById("textarea").innerHTML = "texto";
#3
Posted 17/10/2005, 12:14
tipo eu fiz assim,
var contrato_a = "texto"
var contrato_n = "texto"
function Carrega(contrato_a, contrato_n){
}
ai já ñ sei mais o que fazer
var contrato_a = "texto"
var contrato_n = "texto"
function Carrega(contrato_a, contrato_n){
}
ai já ñ sei mais o que fazer
#4
Posted 18/10/2005, 10:03
assim:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script>
<!--
function Aparecer(value)
{
switch(value) {
case "1":
var msg = "Texto 1";
break;
case "2":
var msg = "Texto 2";
break;
}
document.getElementById("texto").innerHTML = msg;
}
//-->
</script>
</head>
<body>
<input name="1" type="radio" value="1" onclick="Aparecer(this.value);" />
<input name="1" type="radio" value="2" onclick="Aparecer(this.value);" />
<textarea name="texto" cols="" rows=""></textarea>
</body>
</html>
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)










