dynamically submit form and show the value of the input without reloading : i want to create chat UI a fully dynamic for my website now it reloads the whole page but i want a fully dynamic like if a person submits the button this will directly show the div `<div class="messeging" id="msg"><?php  print $message->getName() ." : " . $chat->message . ""; ?> </div>` without reload msgs are save in some xml file path like example `(../user/xml)` i dont know javascript/ajax well how to solve this 

html

    <form action="action.php" method="post">
    <input type="text" id="input" value="php echo"><input type="submit" value="send" onclick="showDiv()">
    </form>
    <div class="messeging" id="msg"><?php  print $message->getName() ." : " . $chat->message . ""; ?> </div>
    

