Solucio taula

De wikiserver
Dreceres ràpides: navegació, cerca
<html lang="en">
<head>
	<meta charset="UTF-8">
	
	<script type="text/javascript" src="jquery.js"></script>
	<script>
		$(document).ready(function(){
			$("tr").click(function(){
				$(this).css("background-color","blue");
			});
		});

	</script>


</head>
<body>
	
	<table border="1">
		<tr>
			<td>1111111111</td><td>1111111111</td><td>1111111111</td><td>1111111111</td>
		</tr>
		<tr>
			<td>2222222222</td><td>2222222222</td><td>2222222222</td><td>2222222222</td>
		</tr>
		<tr>
			<td>3333333333</td><td>3333333333</td><td>3333333333</td><td>3333333333</td>
		</tr>
		<tr>
			<td>4444444444</td><td>4444444444</td><td>4444444444</td><td>4444444444</td>
		</tr>
		<tr>
			<td>5555555555</td><td>5555555555</td><td>5555555555</td><td>5555555555</td>
		</tr>
	</table>


</body>
</html>