> I prefer to put JS in header, also. But I read somewhere that there is
> a bug dealing with an interference of PHP's $variables and jQuery
> $-notation, so it's suggested to put the jQuery functions into the
> body and not into the head section. Is it true?
I don't do much PHP these days, but when I do, I've never run across
such a bug. I suppose that if you use double-quoted strings in PHP to
generate JavaScript output, then you would need to escape the "$", but
I don't do that anyway.
-- Scott
No comments:
Post a Comment