Possible Duplicate:
Is there a difference between $().ready() and $(document).ready()
I am trying to setup jquery ui tabs for a page and I used
$(document).ready(function(){
$('#tabs').tabs();
});
which did not work. So I checked their example and saw a different syntax which now worked
$(function(){
$('#tabs').tabs();
});
What's the difference between the two syntaxes?