understanding $(function())

understanding $(function())

Hi everyone,

It has been a while and logging in through Zohoo its a zoo...
Anyways, I am trying to understand the following function $(function()?

I have a page that is my Log screen that I would like for it to load, but
for the program flow, not go directly to $(function() {});

I tried the following, but it didn't work:

$("Enter").click(function()
 {
   $(function()
     {
       bla, bla, bla,
     });
 });

Please let me know if this makes any sense or if more info is needed and what type.

Thanks,
Neil