$(document).ready(function(){
$("input[type=button]").click(function () {
var myTask = $("input[name=add-task]").val('');
$(".border-info").append('<div class="task"><input type="checkbox" name="post" class="write-post"><span class="vall">' + myTask + "</span></div>");
// var myTask = $("input[name=add-task]").val('');
var input = $("input[name='add-task']");
var myTask = input.val();
input.val('');
append('<div class="task"><input type="checkbox" name="post" class="write-post"><span class="vall">' + myTask + "</span></div>");