Jump to content

What does $(function(){ in jquery actually mean?


TheFilmGod

Recommended Posts

What does this mean in jquery?

 

$(function(){

 

Is the code executed after the dom is loaded or before? I don't want to be blindly coding and then have an error pop up in a few weeks because I'm using the wrong jquery code to begin the pages.

 

Thank you.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.