0
I am creating a chat but the input where the message is written autoclean before sending the message follows the code to give me a hand of what can be, if you need more details put the full code
script
   $(function() {
afficheConversation();
$('#envoyer').click(function() {
    var nom = $('#nom').val();
    var message = $('#message').val();
    $.post('chat.php', {'nom':nom, 'message': message }, function() {
      afficheConversation;
    });
});
function afficheConversation() {
  $('#conversation').load('chatlog.htm');
  $('#message').val('');
  $('#message').focus();
}
setInterval(afficheConversation, 3000);
});