spinnach schrieb:

you could try something like this (since filter accepts a function):

$('#content [EMAIL PROTECTED]').filter(
    function(index){
        return (this.alt && this.alt.length > 0);
    }
).each(...

i have now this:

// Removes leading whitespaces
function trim( value ) {
  var re = /\s*((\S+\s*)*)/;
  return value.replace(re, "$1");
};
  $(function(){
    $('#content [EMAIL PROTECTED]')
      .each(function(){
      if ( trim(this.alt) != '' ){

Work for me correct, also works on at ALT="    "

Thank you

--
Viele Grüße, Olaf

-------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
-------------------------------

Reply via email to