On Aug 30, 5:25 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Simulating block scope in which you can safely use the $ shortcut...
Ok, and now that I came across the need, I saw you and Michael talk
about this.
Before I discovered jQuery 3 weeks ago, I discovered the simple
"alias" trick for $
Pops wrote:
where did I get this from?
(function($) {
... you code..
})(jQuery);
I must of pulled if from an example. What would be its purpose to
have this wrap?
Simulating block scope in which you can safely use the $ shortcut...
--Klaus
Never mind... Using the wrong command
Document.Ready syntaxs:
$(document).ready(function(){
your initialization code ...
});
or
$(function() {
your initialization code ...
});
where did I get this from?
(function($) {
... you code..
})(jQuery);
I must of pulled if from an
Pops wrote:
Whoa! I thought I was beginning to understand this stuff, and
then.
Ok, I thought that this piece of JS code in the tag like so:
(function($) {
... Does it see HTML tags? ...
})(jQuery);
html tags ..
That the whole purpose of (function($) {.. })(jQu
4 matches
Mail list logo