标签:
$("#product option[value=‘170‘]").prop("selected","true")//要确定是selected $("#product option[value=‘170‘]").attr("selected","true")//true加上引号或者不加都可以 $("#product").val("170"); $("#product option[value=‘170‘]").attr("selected","selected")
标签:
原文地址:http://www.cnblogs.com/danlis/p/5741043.html