i have a small form chat like this and i want when click submit that form will not make the page refresh.
<form name="form1" method="post" id="formchat" action="forum_add_1313940.xhtml">
<input name="text" id="text2" max-lenght="1000"></input>
<input type="submit" name="submit" class="submit" value="Gửi" id="chats" />
</form>
and the js
<script language="JavaScript">
$('#formchat').submit(function ()
{
sendformchat(); return false;
});
</script>
But when i click "Gửi", the page gonna refresh. How to make it when click "Gửi", the page not gonna refresh ?