JSFiddle - React, Tailwind, and code Playground

HTML

<h1 id="swegre">
		SWEGRE<span>&copy;</span>
	</h1>
	<div id="wrapper">
		<h1>Leave a comment!</h1>
		<div id ="content">
			<p style="background-color: #b7b7b7">Admin: Here's our chatbox</p>
		</div>
		
		<div id="message">
			<form id="userarea">
			<textarea id="textareamsg" name="messages" rows="2" cols="30" required=""></textarea>
			<a href="#" class="btn">POST</a>
			</form>
		</div>
		
	</div>

CSS

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body
	{
		margin:0;
		padding:0;
		background-color: #e3ffd6;
	}
#wrapper
	{
		width: 350px;
		margin: 0 auto;
	}
h1
	{
		margin: 10px;
		padding: 10px;
		text-align: center;
		font-size: xx-large;
		font-family: 'Indie Flower', sans-serif;
	}
h1#swegre
	{
		position: absolute;
		top:0;
		left:0;
		font-size: xx-large;
		color: rgba(0,0,0,0.3);
		font-family: 'Open Sans', sans-serif;
		text-shadow: 0 0 3px rgba(255,0,255,0.4);
	}
h1#swegre > span
	{
		font-size: small;
		vertical-align: top;
	}
#content
	{
		margin: 0 auto;
		height: 400px;
		width: 300px;
		background-image: linear-gradient(#ffffff 70%, #efefef 100%);
		border: 1px solid #cfcfcf;
		border-radius: 5px 5px 0 0;
		padding: 20px;
		box-shadow: 0 0 10px 0px rgba(0,255,0, 1);
		overflow: scroll;
	}
#message
	{
		text-align: center;
		padding: 0px;
		width: 340px;
		margin:3px auto;
	}
#textareamsg
	{
		padding: 4px;
		float:...

JavaScript

$(document).ready(function(){
			$( "a.btn" ).click(function() {
				var textValue = $('textarea#textareamsg').val();
				if(textValue == "" || textValue == " " || textValue == "  " || textValue == "   "){
					alert('You have to write something in the textarea to post a message');
					return false;
				}else{
			$('#content').append("<p>You: " + textValue + "</p>");
			$('textarea#textareamsg').val('');
			}
			});
    $("#content").load("ajaxload.php");
			
			$("a.btn").click(function(){
				$.post('ajaxPost.php', $('#userarea').serialize(), function(data){
						$('#content').append('<p>'+data+'</p>');
				});
				return false;
			});

		});