On Thu, Oct 8, 2009 at 5:10 PM, Wacko Jacko <jackson.be...@gmail.com> wrote:

>
> Hi There. Yeah, just did. Thanks for that!
>
> Why does my test using the same code not work???? :(
>
> http://www.noosabiosphere.org.au/tester.htm
>

Viewing the source, that <div> isn't empty.  it's got whitespace characters
(spaces and/or tabs and/or newlines)

There should be a few ways you can fix that.  If you're generating this
content dynamically, you should be able to trim the data on the server
side.  If not, you can trim it out on the client via a JS regex or
jQuery.trim().

if (jQuery.trim($answer.text()) == '')

-- 
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.

Reply via email to