I state that are in the course of learning do jQuery ...
There are thousands of tutorials to write functions in a thousand different ways in file .js external...
Someone can give me a hand?
- // Do something when the document it's ready (at the end) ...Correct?
- jQuery(document).ready(function(){
- alert(' I am ready ');
- });
- // The document learn the function and when it is called do something ... Correct?
- function hello() {
- alert(' hello ');
- }
But I don't understand what it means:
- jQuery(function($) {
- ...
- }
or
- (function($) {
- ...
- }(jQuery));
Examples are more accepted
Thanks a lot