When I change the value of a select option, a corresponding radio button should be clicked.
$(document).ready(function(){
$('#colorselector').on('change', function() {
if ( this.value == 'red')
{
$('input[name="purchase[product_id]"][value="000000"][type="radio"]').click();
}
});
});