1$("select.country").change(function(){
2 var selectedCountry = $(this).children("option:selected").val();
3 alert("You have selected the country - " + selectedCountry);
4});
1 document.getElementById('prod_addcart21').addEventListener('click', function () {
2 if ($('select[name="variation[1]"]').val() == '') {
3 alert('Please, choose an option 1');
4 return false;
5 } else if ($('select[name="variation[2]"]').val() == '') {
6
7 alert('Please, choose an option 2');
8
9
10
11 } else if ($('select[name="variation[3]"]').val() == '') {
12
13 alert('Please, choose an option 3');
14
15
16 } else {
17 alert("product added to cart")
18 }
19
20
21 });