html代码
<div id="question">
<div id="question_list_0" class="div_question " >奇</div>
<div id="question_list_1" class="div_question " >葩</div>
<div id="question_list_2" class="div_question " >天</div>
<div id="question_list_3" class="div_question " >地</div>
<div id="question_list_4" class="div_question " >网</div>
</div>
js代码
得到最后一个div的id属性值
$("#question .div_question ").last().attr("id");
修改最后一个div的id属性值
var number = 5;
$("#question .div_question ").last().attr("id", "question_list_" + number);