Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/05/2011, 00:56
Avatar de livemusic
livemusic
 
Fecha de Ingreso: abril-2011
Ubicación: Lima - Chorrillos
Mensajes: 150
Antigüedad: 13 años
Puntos: 18
Respuesta: checkbox datatable jquery

Amigo, intenta con este codigo, me comentas si te funciono....

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function(){
	$('.check').live('click', function(){
		// .attr('checked')
		if($(this).is(':checked')){
			alert('Check Seleccionado '+this.value);
		}
	})
})
</script>
</head>

<body>
<table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="31">&nbsp;</td>
    <td width="169"><strong>Nombres</strong></td>
  </tr>
  <tr>
    <td><input type="checkbox" name="nombre" class="check" value="1" /></td>
    <td>Antony</td>
  </tr>
  <tr>
    <td><input type="checkbox" name="nombre" class="check" value="2" /></td>
    <td>Carolina</td>
  </tr>
  <tr>
    <td><input type="checkbox" name="nombre" class="check" value="3" /></td>
    <td>Marisol</td>
  </tr>
</table>
</body>
</html> 

Última edición por livemusic; 26/05/2011 a las 01:06