我需要恢復到magento上的搜索結果頁上的表單上的默認選項。使用jQuery恢復爲表單上的默認選項
我已經使用了下面的jquery,它在firefox上正常工作。問題是與IE。
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#form-validate-small option:selected').removeAttr('selected');
});
</script>
希望是有道理的
感謝
謝謝傑弗裏。它現在完美的工作:) – 2012-01-11 13:03:35