using javascript with help of jquery
- by tazim
Code written by me based on previous suggestions as follows .
Any help to efficinetly use jquery in order to make this code work .
Thanks in advance 
$(document).ready(function()  
     {
              self.setInterval("clock()",1000);  
              $("button").click(function()  
              {  
                     clock;  
              });  
              function clock()  
              {
                   clock();  
                   time=new Date();  
                   var s = "<p>" + time + "</p>";  
                   $(s).appendTo("div");  
              }  
     });  
<button > Click Me button  </div>
<div id="someid"></div>