I have do that but nothing display. I don't understand what I have done wrong
<div class="">
<table border="1">
<thead>
<tr>
<td>Name</td>
<td>Clas</td>
<td>Roll</td>
<td>Age</td>
<td>NID</td>
</tr>
</thead>
<tbody id="displayArea"></tbody>
</table>
</div>
<div class="formdata">
<form action="" method="post" id="myForm">
<input type="text" name="name"><br/><br/>
<input type="text" name="roll"><br/><br/>
<input type="text" name="class"><br/><br/>
<input type="text" name="age"><br/><br/>
<input type="text" name="nid"><br/><br/>
<input type="submit" name="sub" value="submit">
</form>
</div>
<script type="text/javascript">
$('#myForm').submit(function() {
var $inputs = $('#myForm :input');
var values = {};
$inputs.each(function() {
values[this.name] = $(this).val();
});
$('#displayArea').append("<td>" + values.name + "</td><td>" + values.roll + "</td><td>" + values.class + "</td><td>" + values.age + "</td><td>" + values.nid + "</td></tr>");
});
</script>