what is the difference between:
$(function () {
});
and this:
function HideDiv() {
}
i know first is jQuery Function and second is Javascript function. but i don't know why it putted selector '$' before Function Keyword . i thought that jQuery Selector is for finding an html Element for example this:
$("#loading").hide('fade');
finding an element with the name loading and hide that. regards.