Ver Mensaje Individual
  #7 (permalink)  
Antiguo 04/09/2012, 13:13
Avatar de quike88
quike88
 
Fecha de Ingreso: agosto-2008
Mensajes: 471
Antigüedad: 15 años, 8 meses
Puntos: 87
Respuesta: usar attr en <div> sin id ó class

Hola,

Prueba así:

Código Javascript:
Ver original
  1. $(document).ready(function(){
  2.     $('div').each(function(index) {
  3.         var style = $(this).attr('style');
  4.         if(style == 'border: thin dashed #e6e5e6'){
  5.             $(this).hide();  
  6.         }
  7.     });
  8. });

También podrías intentar algo así:

Código Javascript:
Ver original
  1. $('div[style="border: thin dashed #e6e5e6"]').hide();

Revisa los diferentes selectores.

Saludos!