@gebremswar, no me sale. He puesto esto y no se si puede ser por el contenido dinámico:
Código Javascript
:
Ver original<script>
$(document).on('ready', function(){
* * $('#list .row').on({
* * * * click: function(){
* * * * * * var $checkbox = $(this).find('.check');
* * * * * * if ($checkbox.prop('checked')) {
* * * * * * * * $checkbox.prop('checked', false);
* * * * * * * * $(this).removeClass('selected')
* * * * * * } else {
* * * * * * * * $checkbox.prop('checked', true);
* * * * * * * * $(this).addClass('selected')
* * * * * * }
* * * * },
* * * * mouseenter: function(){$(this).addClass('over')},
* * * * mouseleave: function(){$(this).removeClass('over')}
* * });
* * $('#list .row .check').on('click', function(event){
* * * * event.stopPropagation();
* * * * $(this).parents('.row').toggleClass('selected');
* * });
});
</script>
<style>
th, td {cursor:default}
.row {
color: #000;
font-size: 10px;
}
.row.over {background-color:#E7E7E7}
.row.selected {background-color:#0072C6;color:white}
</style>
Código Javascript
:
Ver original<table width="100%" id="list" border="1" class="table-dg-grid" >
<thead>
<tr bgcolor=#9CF id=t70 ondblclick='coloreaf(70,1)' onMouseOver='coloreamosin(70,1)' onMouseOut='coloreamosout(70,1)'>
<th><span title="selecc">Selecc.</span></th>
<th><span title="num_aparato">NºAparato</span></th>
<th><span title="aparato">Aparato</span></th>
<th><span title="marca">Marca</span></th>
<th><span title="modelo">Modelo</span></th>
<th><span title="num_serie">NºSerie</span></th>
<th><span title="num_producto">Cod/12nc</span></th>
</tr>
</thead>
<?php do { ?>
<tr class="row">
<th><input name="s" type="checkbox" class="check" value="<?=$row_ap_usuarios['NUM_APARATO'];?>"/></th>
<th><?php echo $row_ap_usuarios['NUM_APARATO']; ?></th>
<th><?php echo $row_ap_usuarios['APARATO']; ?></th>
<th><?php echo $row_ap_usuarios['MARCA']; ?></th>
<th><?php echo $row_ap_usuarios['MODELO']; ?></th>
<th><?php echo $row_ap_usuarios['NUM_SERIE']; ?></th>
<th><?php echo $row_ap_usuarios['NUM_PRODUCTO']; ?></th>
</tr>
<?php } while ($row_ap_usuarios = mysql_fetch_assoc($ap_usuarios)); ?>
<caption class="tb1CaptionBottom"></caption>
</table>
Gracias