www.webdeveloper.com
Results 1 to 6 of 6

Thread: I need a JavaScript, please could you help?

Threaded View

  1. #1
    Join Date
    Oct 2012
    Location
    istanbul
    Posts
    61

    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
    Last edited by Adem; 11-16-2012 at 06:24 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles