Rules:
1. Whole selects are disabled by default.
2. If you choose checkbox, select is enabled and you have to the amount of product. alert("Select the amount of your product or deselect the checkbox").
3. If you choose th amount of products, The amount must be max 10 - for whole selects. alert("The amount of product cannot be more than 10").
4. You can choose 3 different product. alert("You can select up to 3 different products")
if(!isNaN(document.getElementById('myselect'+i).value)){
tempSum+=eval(document.getElementById('mycheck'+i).value);
}else{
emptyBox = true;
alert('Choose an value in select box'+i); //Checks if select box is chosen no value
break;
}
1. "All selects" must be disabled.
2. When the checkboxes are enabled and the person doesnot select the amount of product, it gives the alert at that moment while he/she is selecting. But I want that it gives the alert when the person finishes her/his choices and clicks "submit".
It gives pass even though the person doesnot select the amount. It musn't be that.
3. If you choose th amount of products, The amount must be max 10 - for whole selects. alert("The amount of product cannot be more than 10").
4. You can choose 3 different product. alert("You can select up to 3 different products")
alert("Receiver seçme isteğe bağlıdır.\n\nEğer bir marka seçtiniz ise miktarıda seçmelisiniz ve toplam daire sayınız olan <?=$dairesayisi?> adet geçmemeniz gerekiyor.");
Bookmarks