Linked options script for shopify by
David Mynors
annotated script code
Demo
Select Size
Medium
Large
Select Colour
Red
Green
Blue
to explore/edit the code in the above demo, click the purple fish at the top right
Demo product data: