只需要将文本框的值置为空即可:

function resetBtn(){
   $("#name").val("");
}

即将秃头的程序员