Looking a script like at :
http://demo.cs-cart.com/ultimate/app...00g-pants.html

When click variant image then a border around the image and then pass value to dropdown select field so it will change value.

What is the name of such reaction?