As I found the option box default value in magento here:
/app/design/frontend/default/mytheme/template/catalog/product/view/type/options/configurable.phtml
<select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
<option><?php echo $this->__('Choose an Option...') ?></option>
</select>
It shows 'Choose an Option...' as a default value
I try
<script>
$(function() {
$("#attribute525 option:first-child").attr("selected", true); //color
$("#attribute272 option:first-child").attr("selected", true); //size
});
</script>
to make the default value each attribute set to the first option of each attribute,
but it doesn't work. Any suggestion will be appreciated, thanks.