I have an application that has this format scattered around but I dont know what kind it is. It’s not jQuery, so what is it?
$('some_edit').style.display = "block";
$('some_views').style.display = "none";
I get this in firebug and I know the element is present:
$("some_edit").style is undefined
A lot of people have defined the ‘$’ symbol as a substitute for document.getElementById().
Basically:
A more proper, “namespace” example:
I have used a self-invocation pattern (
function(){ ... }()) in this example.