writing javascripts function using jquery
Posted
by tazim
on Stack Overflow
See other posts from Stack Overflow
or by tazim
Published on 2010-06-11T06:42:52Z
Indexed on
2010/06/11
6:52 UTC
Read the original article
Hit count: 202
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>
© Stack Overflow or respective owner