关于 Jquery prepend append
<script src="../jquery-1.3.2.min.js"></script>
<select id="dcolor">
<option value="FFFFFF|FFFFFF|0000FF|444444|008000|E10900">默认配色</option>
<option selected="selected" value="BC0909|FFFFFF|0000FF|444444|008000|E10900">红与白</option>
<option value="999999|FFFFFF|000000|444444|008000|E10900">简约灰</option>
<option value="798DBF|FFFFFF|0000FF|444444|008000|E10900">沁心蓝</option>
<option value="86AC5F|FFFFFF|0000FF|444444|008000|E10900">嫩叶绿</option>
<option value="ED945A|FFFFFF|0000FF|444444|008000|E10900">暖粉橙</option>
<option value="F1DD95|FFFFFF|0000FF|444444|008000|E10900">黄金黄</option>
<option value="E0E4F3|79829E|FFFFFF|D1DBFF|353F5E|E10900">漂青蓝</option>
<option value="A2BE43|F4FAE1|178102|444444|2D4383|E10900">漂新绿</option>
<option value="137766|3B9082|FFFFFF|B9F6EE|0F5348|E10900">漂冰绿</option>
</select>
<script>
$(
function(){
$("#dcolor").append('<option id="option_qxz" selected="selected" >-请选择-</option>');
//在ie下,用 prepend 有时候出现不能弄默认选中的问题,改用append
}
);
</script>