var $questionID = $('input[name = "questionID"]').val(); 这么写是对的 至于为什么都是1不变是你{$question.questionID}的问题 你可以用FIREBUG看看 input的值是不是变的