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:
Whoa! I thought I was beginning to understand this stuff, and
then.
Ok, I thought that this piece of JS code in the head tag like so:
html
head
script type='text/javascript'
(function($) {
... Does it see HTML tags? ...
})(jQuery);
/script
/head
body
html tags
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
3 matches
Mail list logo