In every JQuery tutorial the entry point is always like this:
$(document).ready(function() {
...
});
But in sdoc project it has different entry point as for my novice's view. Here's the code snippet and there the full file:
<script type="text/javascript" charset="utf-8">
//<![CDATA[
function placeholder() {
...
}
$(function() {
placeholder();
...
})
//]]>
</script>
The question: Is $(function()..)
the entry point for jquery script? And if it does why it differ from traditional approach? Thanks