Entradas

Agregar valores despues del contenido de una tabla

Html <table border="1" align="center" id="tabla_resultado" cellspacing="1" cellpadding="1" class="tabla" width="50%"> <tr>  <th rowspan="2" align="center">Resultado</th>  <th colspan="2" align="center">Tipo de Inicio</th>  <th rowspan="2" align="center">Total</th> </tr> <tr>  <th align="center">Entrante</th>  <th align="center">Saliente</th> </tr> </table> Javascript $('#tabla_resultado tr:last').after(      '<tr>' +                  '<td align="right"><b>' + resultado + '</b></td>' +                  '<td align="right">' + entrante + '</td>' +                 ...

Saber cuando se selecciono un checkbox

$('#personas').click(function() {     if($("#personas:checkbox").attr('checked') == true)     {            $("#valor_bloqueo").val($("#TipoBloqueo").val());     }     else     {            $("#valor_bloqueo").val("");     } });

Utilizando Qtip

AGREGAR LOS SIGUIENTES PLUGINS: Html  <script type="text/javascript" src="../js/jquery.qtip.js"></script>  <link rel="stylesheet" type="text/css" href="../css/jquery.qtip.css" />  <td>   <html:text    style="width: 70px;"    styleClass="input"    maxlength="3"    styleId="puntajeMinimo">                    </html:text>                                   </td>  <td><div id="msg_puntajeMinimo" style="display:none"><img src='../images/exclamation.gif'></div></td> Javascript if(puntaje_minimo >= 30 && puntaje_minimo<= 100) {  $("#puntajeMinimo").cs...

Objeto Select

Deshabilitar objeto Select $("#Seleccionar").attr('disabled','true'); Obtener cantidad de opciones del objeto Select $("#Seleccionar").attr("length");

Agregar contenido a un objeto html

$("#contenido1").html('El puntaje mínimo ingresado es considerado como <b>¿Está seguro de aplicar este puntaje?</b>');

Validar Correo

function validar_correo(txt) {          //expresion regular    var b=/^[^@\s]+@[^@\.\s]+(\.[^@\.\s]+)+$/;                //comentar la siguiente linea si no se desea que aparezca el alert()    //alert("Email " + (b.test(txt)?"":"no ") + "válido.");  /*  if(b.test(txt) == false)  {         $("#correo").css({ border: "1px dotted #990033" });   $("#msg_correo").css({ "color": "990033", "font-style": "italic" });   $("#msg_correo").html("<img src='../images/exclamation.gif'>&nbsp;Email invalido");  }  else  {   $("#correo").css({ border: "1px solid #aaaaaa" });   $("#msg_correo").html("");  }             */  //devuelve verdadero si validacion OK, y falso en caso...

CheckBox seleccionado por default

$("#personas:checkbox").attr('checked',true);