writing javascripts function using jquery
- by tazim
Some template written using jquery is as follows . it is not working . Any suggestions to use jquery efficiently .
<html>
<head>
<script type="text/javascript" src="/jquerycall/"></script>
<script type="text/javascript">
$(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");
}
});
</script>
</head>
<body>
<form method="post">
<button type="button">Click Me</button>
<div id="someid"></div>
</form>
</body>
</html>