摘要: var street = '清华园路';$('#streetid option:contains(' + street + ')').each(function(){ if ($(this).text() == street) { $(this).attr('selected', true); }});这是设置text为清华园路的项为选中项。来自为知笔记(Wiz) 阅读全文
posted @ 2014-10-04 09:32 fighter 阅读(13412) 评论(3) 推荐(1) 编辑