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
/
Prototype
/
deshabilitar-elemento-formulario.html
r478
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
<!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>Deshabilitar un elemento de un formulario</title>
<script type="text/JavaScript" src="http://lineadecodigo.com/js/prototype/prototype.js"></script>
</head>
<body>
<h1>Deshabilitar un elemento de un formulario</h1>
<form id="peticion">
<label for="nombre">Nombre: </label><input type="text" id="nombre"/><br>
<label for="apellido">Apellido: </label><input type="text" id="apellido"/><br>
<input type="radio" name="genero" value="Hombre"/>Hombre
<input type="radio" name="genero" value="Mujer"/>Mujer
</form>
<form id="control">
<input type="button" value="Deshabilitar Apellido" onClick="Form.Element.disable('apellido');"/>
<input type="button" value="Habilitar Apellido" onClick="Form.Element.enable('apellido');"/>
</form>
<br><br>
<hr>
Artículo disponible en: <a href="http://lineadecodigo.com/prototype/deshabilitar-un-elemento-del-formulario-con-prototype/">http://lineadecodigo.com/prototype/deshabilitar-un-elemento-del-formulario-con-prototype/</a><br/>
<a href="http://lineadecodigo.com" title="Linea de Codigo">lineadecodigo.com</a>
</body>
</html>
Show details
Hide details
Change log
r170
by vcuervo on Sep 12, 2009
Diff
Deshabilitar elemento de un formulario con Prototype
Go to:
...bilitar-elemento-formulario.html
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1291 bytes, 32 lines
View raw file
Powered by
Google Project Hosting