how to get combo box automatically if checkbox is clicked

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

    how to get combo box automatically if checkbox is clicked

    hi,
    can anyone suggest me how to get combo-box if i click check-box..that means previously i used to do as checkbox and combo box i kept side by side..but now i need to have..if i click check-box it should automatically open the combo-box...can anyone suggest me regarding this..here is my code..


    Code:
    <td></td> 
                            <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; 
    else 
    document.getElementById('valid').disabled = false;">Low Balance <select NAME="multiActProp" size="1"> 
                                    <option value="select">--- Select Options ---</option> 
                                    <option value="REVERT">REVERT</option> 
    <option value="EXIST">EXIST</option> 
                                </select>
    thanks,
    madhu.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    What do you mean by "open"? Do you mean simulating a click on the combo box or something else?

    Comment

    • madhuriks
      New Member
      • Jun 2010
      • 149

      #3
      hi,
      i mean if i click checkbox..autom atically it should open combobox in the same window or the other window...can u suggest me how to do...

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        From that, I assume you mean it should appear when the checkbox is checked. Then, keep it hidden initially (CSS display property should be "none"), then when checked, show it:
        Code:
        document.getElementById("combobox").style.display="block";

        Comment

        Working...