JQuery funtionality

Is     $()   equivalent to   $(window) ?
Lawrence AverySystem DeveloperAsked:
Who is Participating?
 
GaryCommented:
That's the long way and the above is the shorthand way
0
 
GaryCommented:
No
$() does nothing as you are trying to attach it to nothing.
0
 
Lawrence AverySystem DeveloperAuthor Commented:
Isn't there an  jQuery  statement  that defaults to $(window) or $(document) or something like that. I am trying to remember what I read somewhere that it was an equivalent.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
GaryCommented:
If you are trying to set something to happen on document load then the shortcut is

$(function(){
...
})
0
 
Lawrence AverySystem DeveloperAuthor Commented:
I am very new to jQuery - so what is the long way ?

$( document ).ready()
0
 
Lawrence AverySystem DeveloperAuthor Commented:
www.jQuery.com  -------- shows it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.