How to make visible of text boxes on selecting the drop down list which is multi select
<p>Hi all i have gone through the example of dropdownlist with checkbox from here</p>

<p><a href="http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=79" rel="nofollow">http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=79</a></p>

<p>which works fine for me . But as per my requirement i will have 3 items in the drop down, if i select all i would like to enable all the 3 text boxes that are avalable on the form. If not i would like to make only the corresponding text box as visible</p>

<p>so in the script as for my testing i write as follows</p>

<pre><code>&lt;script language="javascript"&gt;
    function GetSelectedValue() {
        var chkBox = document.getElementById("&lt;%=chkList.ClientID%&gt;");
        var checkbox = chkBox.getElementsByTagName("input");
        var objTextBox = document.getElementById("&lt;%=txtChkValue.ClientID%&gt;");
        var obj1 = document.getElementById("&lt;%=txt1.ClientID%&gt;");
        var counter = 0;
        objTextBox.value = "";
        for (var i = 0; i &lt; checkbox.length; i++) {
            if (checkbox[i].checked) {

                var chkBoxText = checkbox[i].parentNode.getElementsByTagName("label");
                if (objTextBox.value == "") {
                    objTextBox.value = chkBoxText[0].innerHTML;
                    if (objTextBox.value = "hi") {

                       document.getElementById("&lt;%=txt1.ClientID%&gt;").style.visibility = 'visible'; // This is what i tested but this is not working                        }

                }
                else {
                    objTextBox.value = objTextBox.value + ", " + chkBoxText[0].innerHTML;
                }
            }
        }
    }
&lt;/script&gt;
</code></pre>

<p>So can any one help me please</p>
