Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1362 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

jQuery function confusion

Thread title: jQuery function confusion
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
11-22-2010, 02:12 AM
#3
Enfernikus is offline Enfernikus
Status: I'm new around here
Join date: Jul 2008
Location:
Expertise:
Software:
 
Posts: 20
iTrader: 1 / 100%
 

Enfernikus is on a distinguished road

  Old

Code:
$(function(){
});
Is short hand for

Code:
jQuery(document).ready(function(){
});
What the ready method does, succinctly, is use cross-browse compatible methods to ensure that the element you've specified has been loaded fully and is in a "ready" state to be manipulate. We choose to the document element because it represents the whole of the page we're working with.

Reply With Quote
     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed