writing javascripts function using jquery
<p>Some template written using jquery is as follows . it is not working . Any suggestions to use jquery efficiently .</p>

<pre><code>&lt;html&gt;  
&lt;head&gt;  
&lt;script type="text/javascript" src="/jquerycall/"&gt;&lt;/script&gt;  
&lt;script type="text/javascript"&gt;  
    $(document).ready(function()  
    {  
        self.setInterval("clock()",1000);  
        $("button").click(function()  
        {  
            clock;  
        });  
        function clock()  
        {  
            clock();  
            time=new Date();  
            var s = "&lt;p&gt;" + time + "&lt;/p&gt;";  
            $(s).appendTo("div");  
        }
    });  
&lt;/script&gt;  
&lt;/head&gt;  
&lt;body&gt;  
&lt;form method="post"&gt;  
&lt;button type="button"&gt;Click Me&lt;/button&gt;  
&lt;div id="someid"&gt;&lt;/div&gt;  
&lt;/form&gt;  
&lt;/body&gt;  
&lt;/html&gt;
</code></pre>
