有如下代码$("input[type='button']").click(function(){
var tr = $($(this).parents("tr"));
var id = $.trim(tr.find("td:nth-child(1)").text());
var category = $.trim(tr.find("td:nth-child(2)").text());
var name = $.trim(tr.find("td:nth-child(3)").text());
var sequence = $.trim(tr.find("td:nth-child(4)").text());
$('#sid').attr('value',id);
$("#scategory option[value="+category+"]").attr("selected",true);
$('#sname').attr('value',name);
$('#ssequence').attr('value',sequence);
});在IE中能够实现点击不同的按钮的同时下拉列表的值也改变,但在chrome中就无法实现,请问这是什么原因,应该怎么修改