My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
<!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>Modificar contenido de una capa con jQuery</title>
<script type="text/javascript" src="http://lineadecodigo.com/js/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#miboton").click(function(){
$("#micapa").html("Nuevo contenido de la capa");
});
});
</script>
</head>
<body>

<h1>Modificar contenido de una capa con jQuery</h1>

<div id="micapa">Capa con algo de texto</div>
<button id="miboton">Cambiar el contenido</button>


<br/><br/>
<hr>
Art&iacute;culo disponible en: <a href="http://lineadecodigo.com/jquery/modificar-el-contenido-de-una-capa-con-jquery/">http://lineadecodigo.com/jquery/modificar-el-contenido-de-una-capa-con-jquery/</a><br/>
<a href="http://lineadecodigo.com" title="Linea de Codigo">lineadecodigo.com</a>


</body>
</html>

Change log

r242 by vcuervo on May 26, 2010   Diff
Cambiar el contenido de una capa con
jQuery
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 1024 bytes, 30 lines
Powered by Google Project Hosting