My favorites
▼
|
Sign in
lineadecodigo
Web Code Samples in spanish
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
lineadecodigo_web
/
WebContent
/
scripting
/
javascript
/
formularios
/
cambiar-estado-radio-group.html
r480
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Cambiar el estado de un radio group</title>
<script type="text/javascript">
function control(sexo){
document.getElementById(sexo).checked = true;
}
</script>
</head>
<body>
<h1>Cambiar el estado de un radio group</h1>
<form id="myform">
<input type="radio" name="sexo" id="sexo_m"/ value="masculino">
<label for="sexo_m">Masculino</label><br/>
<input type="radio" name="sexo" id="sexo_f"/ value="femenino">
<label for="sexo_f">Femenino</label><br/>
<button onclick="control('sexo_m');return false;">Masculino</button>
<button onclick="control('sexo_f');return false;">Femenino</button>
</form>
<br><br>
<hr>
Artículo disponible en: <a href="http://lineadecodigo.com/javascript/cambiar-el-valor-de-un-radio-group-dinamicamente/">http://lineadecodigo.com/2008/02/04/buscar-en-la-lista/</a><br/>
<a href="http://lineadecodigo.com" title="Linea de Codigo">lineadecodigo.com</a>
</body>
</html>
Show details
Hide details
Change log
r174
by vcuervo on Sep 19, 2009
Diff
Cambiar el estado de un radio group de forma dinĂ¡mica.
Go to:
.../cambiar-estado-radio-group.html
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1133 bytes, 33 lines
View raw file
Powered by
Google Project Hosting