First steps with Javascript: trying to debug
<p>i have added to the beginning of my code this great script below.</p>

<pre><code>&lt;script type="text/javascript"&gt;

alert("pippo");


&lt;/script&gt;
</code></pre>

<p>And it works: when i load the page it shows a small window with "pippo".</p>

<p>If i I add this below after the alert:</p>

<pre><code>    $(document).ready(function()
    // validate signup form on keyup and submit


    $("#foo").validate({
        rules: {
            'telephone[number]': {
        number: true
            }
        },
        messages: {
            'telephone[number]': "Please enter a telephone number"

        }
    });
});
</code></pre>

<p>and reload the page it doesn't show "pippo" any more..Why?</p>

<p>Regards</p>

<p>Javi</p>
