Solved

JQuery  funtionality

Posted on 2014-02-21
6
123 Views
Last Modified: 2014-02-21
Is     $()   equivalent to   $(window) ?
0
Comment
Question by:metro156
  • 3
  • 3
6 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39877595
No
$() does nothing as you are trying to attach it to nothing.
0
 

Author Comment

by:metro156
ID: 39877626
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
 
LVL 58

Expert Comment

by:Gary
ID: 39877636
If you are trying to set something to happen on document load then the shortcut is

$(function(){
...
})
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:metro156
ID: 39877686
I am very new to jQuery - so what is the long way ?

$( document ).ready()
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39877695
That's the long way and the above is the shorthand way
0
 

Author Closing Comment

by:metro156
ID: 39877718
www.jQuery.com  -------- shows it.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now