[jQuery] Re: selector for ATTR is empty

2007-04-13 Thread Olaf Bosch
Brandon Aaron schrieb: jQuery provides a trim method already and you can use it like this: A, sorry for lost the JQuery-Way ;) -- Viele Grüße, Olaf --- [EMAIL PROTECTED] http://olaf-bosch.de www.akitafreund.de ---

[jQuery] Re: selector for ATTR is empty

2007-04-12 Thread Brandon Aaron
jQuery provides a trim method already and you can use it like this: var myString = "test "; var myNewString = $.trim(myString); myNewString now holds: "test" Here are the docs for the method. http://docs.jquery.com/JavaScript#.24.trim.28_str_.29 -- Brandon Aaron On 4/12/07, Olaf Bosc

[jQuery] Re: selector for ATTR is empty

2007-04-12 Thread Olaf Bosch
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 ) { v

[jQuery] Re: selector for ATTR is empty

2007-04-12 Thread spinnach
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(... dennis. Olaf Bosch wrote: Hi All, where i release a Seloctor of all images with