How work the jquery oriented object?
<p>I don't understand how work an object with Jquery/javascript.</p>

<p>And how create a private method/variable with? i see on the forum a closure but i have try and not work. And how see if the method/variable is private? because when I run the website, I see always the function and variable with the own value into my script...</p>

<p>Thanks for your help :).</p>

<p>By e.x:</p>

<pre><code>var ClassName=function()
{
    validation : 0,
    name : 0,
            privateVar: 0,
    init : function ()
    {
        validation = 1;
        name ="toto";
    }
    privatefunction :function()
    {
        alert("a private function");
    }
};
</code></pre>
