<td>
<form method="POST" id="form2" action="" >
<button value="del_<?=$value[0]?>" class="btn2" type="button" onclick="SendPost();"> ntcn</button></form>
</td>
function SendPost() {
var id = $(this).val('#btn');
var splitid = id.split('_');
var deleteid = splitid[1];
$.ajax({
type: 'post',
url:'application/models/forms/red_form.php',
data:{ del : deleteid },
success: function(response) {
$('#result_form3').html(response);
}
});
}