Hello guys I have 3 images and a select with 3 option.
The option value is the same as image alt. How can I do it so when I click the image it takes the alt and selects the right option?
Hope you got it.
Thank you.
$('img').click(function () {
$('select').val(this.alt);
});
Replace img
and select
with more specific selectors as necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With