Hello! Here is my code :
<script type="text/javascript">
function show() {
var text=$("#text").val();
$("#output").load("index.htm");
}
function send() {
var text=$("#text").val();
$.post("new.php",{'txt':text});
$("#text").val(" ");
}
</script>
</head>
<body onload="javascript:window.setInterval('show()', 1000)">
<input type="text" id="text">
<div id="output">CHange</div>
<input type="button" value="Send" onclick="send()">
</body>
Now the problem i'm facing is that $("#output").load("index.htm");
doesn't seem to do anything :/
Please Help!