
ayuda para guardar datos de esta tabla
Publicado por javier (3 intervenciones) el 12/07/2022 09:22:29
Hola, he creado una tabla para que los usuarios de mi web puedan seleccionar las horas que tienen disponibles y que se queden grabadas, pero no se como hacer eso, si alguien puede ayudarme se lo agradecería
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<html lang="es">
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<head>
<script language="javascript" type="text/javascript">
function ilumina(celda){
if (celda.style.backgroundColor=="yellow")
{
celda.style.backgroundColor="PeachPuff";
}
else
{
celda.style.backgroundColor="yellow";
}
}
</SCRIPT>
<table border="1" summary="Los grupos de música punk más famosos del Reino Unido">
<caption>CLICK ON THE CELLS TO SELECT YOUR AVAILABLE HOURS</caption>
<thead>
<tr>
<th scope="col">Grupo</th>
<th scope="col">Año de formación</th>
<th scope="col">Número de álbumes</th>
<th scope="col">Canción más conocida</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">LUNES</th>
<td bgcolor="PeachPuff" onclick="ilumina(this)">9-10 a.m</td>
<td bgcolor="PeachPuff" onclick="ilumina(this)">10-11 a.m</td>
<td bgcolor="PeachPuff" onclick="ilumina(this)">11-12 a.m</td>
</tr>
<tr>
<th scope="row">MARTES</th>
<td bgcolor="PeachPuff" onclick="ilumina(this)">9-10 a.m</td>
<td bgcolor="PeachPuff" onclick="ilumina(this)">10-11 a.m</td>
<td bgcolor="PeachPuff" onclick="ilumina(this)">11-12 a.m</td>
</tr>
<tr>
<th scope="row">MIERCOLES</th>
<td bgcolor="PeachPuff" onclick="ilumina(this)">9-10 a.m</td>
<td bgcolor="PeachPuff" onclick="ilumina(this)">10-11 a.m</td>
<td bgcolor="PeachPuff" onclick="ilumina(this)">11-12 a.m</td>
</tr>
</tbody>
</table>
PULSE SOBRE LAS CELDAS PARA SELECCIONAR SUS HORAS DISPONIBLES
</body>
<meta>
</html>
Valora esta pregunta


0