I need a JavaScript, please could you help?
Hello,
See: http://awesomescreenshot.com/0a3mle7e9
PHP Code:
<?php
while ($row = mysql_fetch_array($receiverler)) {
?>
<tr>
<td class="table_body2" width="30%"><?=$row['receiver_markasi']?></td>
<td class="table_body2" width="27%"><?=$row['receiver_tipi']?></td>
<td class="table_body2" width="26%"><?=$row['receiver_ozelligi']?></td>
<td class="table_body2" width="8%"><?=@$row['receiver_fiyati']?><?=@$row['receiver_para_cinsi']?></td>
<td class="table_body2" width="9%">
<input type="checkbox" name="secilenreceivermarka_id[]" value="<?=$row['id']?>">
</td>
<td class="table_body2" width="9%">
<select size="1" name="secilen_receiver_sayisi[]">
<option></option>
<?php
$sayi = 1;
while($sayi < $encok=$dairesayisi['secilen_daire_sayisi']+1) {
echo '<option value="'.$sayi.'">'.$sayi.'</option>';
$sayi++;
}
?>
</select>
</td>
</tr>
<?php
}
?>
Product may be 1 row or more rows
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")
Best Regards
Thanks
Adem