www.webdeveloper.com
Results 1 to 1 of 1

Thread: I need help for a feature

Hybrid View

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

    I need help for a feature

    Hello,

    My code:
    PHP Code:

    <script type="text/javascript">
    function baslangic(status)
    {
    status=!status;    
    textler=document.getElementsByName("secilen_receiver_sayisi[]");
    for(x=0;x<textler.length;x++){
    textler[x].disabled = status;
    }
    }

    function isaretle(){
    marka=document.getElementsByName("secilenreceivermarka_id[]");
    sayi=document.getElementsByName("secilen_receiver_sayisi[]");
    for(x=0;x<marka.length;x++){
    sayi[x].disabled=!marka[x].checked;
    }
    }

    function kontrol(){

    marka=document.getElementsByName("secilenreceivermarka_id[]");
    sayi=document.getElementsByName("secilen_receiver_sayisi[]");
    for(x=0;x<marka.length;x++){
    if(marka[x].checked==true&&(sayi[x].value><?=$maximum_receiver?>||sayi[x].value==""||sayi[x].value<1||sayi[x].value.search(/\d/g)<0)){

    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 <?=$maximum_receiver?> adet geÁmemeniz gerekiyor.");

    return false;
    }
    }
    return true;
    }
    </script>
    This is the name of Checkbox : name="secilenreceivermarka_id[]"
    This is the name of Select list: name="secilen_receiver_sayisi[]"
    Maximum amount variable: <?=$maximum_receiver?>

    1st rule: http://awesomescreenshot.com/0a1o6rh36 by DEFAULT, No problem

    2nd rule: http://awesomescreenshot.com/07ao6s6c2 Required select amount, No problem

    3th rule: http://awesomescreenshot.com/0beo6tmec There is not this future , I want to add this future in code above.
    Could you help me?


    All the rules are these.

    Thank you
    Last edited by Adem; 12-06-2012 at 09:21 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