how to make visible 2 combo boxes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madhuriks
    New Member
    • Jun 2010
    • 149

    how to make visible 2 combo boxes

    hi,
    im my form...i had 2 combo boxes....if i click one combo box second combo box should be disabled that im doing....its working fine...but my problem is if i want to select both combo boxes how to do...i tried..but not getting any idea...here is my code...

    Code:
    <td><font color="#800000" size=""><b>Multi-Act-Prop</b></font></td>
                            <td><input type="checkbox" name="multiActProp" value="LOW_BAL,"
                                       id="low" onclick="if (this.checked){
                            document.getElementById('valid').disabled=true;
                            document.getElementById('mvalid').disabled=true;}
                        else{
                            document.getElementById('valid').disabled=false;
                            document.getElementById('mvalid').disabled=false;}">Low Balance
    		  <select NAME="multiActProp" id="lowbal" size="1">
                                    <option >--- Select Options ---</option>
                                    <option value="REVERT">REVERT</option>
                                </select> <br>
                                <input type="checkbox" name="multiActProp" value="VALIDITY,"
                                       id="valid" onclick="if (this.checked){
                                 document.getElementById('low').enabled=true;
                                 document.getElementById('lowbal').enabled=true;}
                             else{
                                 document.getElementById('low').enabled=false;
                                 document.getElementById('lowbal').enabled=false;}">Validity<br>
                                 <select NAME="multiActProp" size="1" id="mvalid">
                                    <option>--- Select Options ---</option>
                                    <option value="SET_MAX">SET_MAX</option>
                                    <option value="ADD_TO_CURRENT">ADD_TO_CURRENT</option>
                                    <option value="RETAIN_THE_SAME">RETAIN_THE_SAME</option>
                                    <option value="DEFAULT">DEFAULT</option>
                                </select><br>
    i need help...can anyone provide me the solution.

    thanks,
    madhu.
  • madhuriks
    New Member
    • Jun 2010
    • 149

    #2
    any help..

    Comment

    • madhuriks
      New Member
      • Jun 2010
      • 149

      #3
      can any one help me out regarding this post

      Comment

      • omerbutt
        Contributor
        • Nov 2006
        • 638

        #4
        what do you mean by selecting both , do you want to say disable both of them
        regards,
        Omer Aslam

        Comment

        • madhuriks
          New Member
          • Jun 2010
          • 149

          #5
          hi,
          i need sometimes both the checkboxes as well as corresponding combo boxes...or else any one of checkboxes and corresponding.. .comboboxes..

          Comment

          • madhuriks
            New Member
            • Jun 2010
            • 149

            #6
            any help regarding my post

            Comment

            • johny10151981
              Top Contributor
              • Jan 2010
              • 1059

              #7
              Your problem is really wired.
              If i got you right. Then I would suggest you this

              Put check box with them. If you want to choose from both of the combo then first click the check box and then select from both.

              Another possible solution is if you choose the second one first then none of the combo would be disabled.

              Try anyone of them. But i think first one is better solution.

              Comment

              Working...