Grab selected attribute in attribute machine
MivaEvents.SubscribeToEvent('variant_changed', function (product_data) { $('#swatch-name').text($('#Color option:selected').text()); });