Why do we use like this?
(function( $, window, document, undefined ) {
.......
})(( jQuery, window, document );)
I think the $ is converted to jQuery, Ok! But why window, document?
And also, can I use my own selector method something like this?
var mydiv = $('#mydiv');
(function( $, window, document, mydiv, undefined ) {
.......
})(( jQuery, window, document, mydiv );)