Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/11/2011, 07:57
Avatar de linuxzero
linuxzero
 
Fecha de Ingreso: noviembre-2011
Ubicación: Argentina
Mensajes: 778
Antigüedad: 12 años, 5 meses
Puntos: 160
Respuesta: Duda para detectar

Código Javascript:
Ver original
  1. $('input').each(function() {
  2.    if ($(this).val().match(/algo/)) {
  3.        if ($(this).hasClass()) {
  4.            return $(this).class();
  5.        } else {
  6.            return $(this).attr('id')
  7.        }
  8.    }
  9. });

La verdad no lo probe, hacelo y avisame ;)
__________________
Si todo fuera tan sencillo como un symfony cc la vida seria más fácil.
http://phpnico.wordpress.com