JQuery help, How to Hide all button in JQuery
<p>I'm trying to make a request/reply section in my project.<br>
I want to achieve these functionality in that code (that I'm not able to implement; so guys please help me out):<br>
1> When user click on reply button; other reply area(text-area +button) should be hide (means at a time only one reply area should be visible to the user).<br>
2> when user click on reply button text-area will focus and page will slide down (suppose user reply 10 comment focus will automatically set to the 10 number text area and page will slide down to that position accordingly).  </p>

<p>Here is my so far code guys:    </p>

<pre><code>    //method call on the click of reply link.  
    function linkReply_Clicked(issueId) {    

        Id = issueId;
        textId = "text_" + issueId + count;
        btnReply = "btnReply_" + issueId + count;
        btnCancel = "btnCancel_" + issueId + count;

        var textareasArray = document.getElementsByTagName("textarea");
        var btnArray = document.getElementsByTagName("input");

        for (i = 0; i &lt; textareasArray.length; i++) {
            textareasArray[i].style.display = "none";
            btnArray[i].style.display = "none";
        }

        var str = "&lt;table cellpadding='3' cellspacing='0' width='58%'&gt;";
        str += "&lt;tr&gt;&lt;td valign='top' align='left'&gt;";
        str += "&lt;textarea id=" + textId + " rows='5' cols='60'&gt;&lt;/textarea&gt;";
        str += "&lt;/td&gt;&lt;/tr&gt;";
        str += "&lt;tr&gt;&lt;td valign='top' align='right'&gt;";
        str += "&lt;input id=" + btnReply + " type='button' onclick='btnReply_Clicked(Id ,textId)' value='Reply' /&gt;&amp;nbsp;";
        str += "&lt;input id=" + btnCancel + " type='button' onclick='btnCancel_Clicked(Id ,textId)' value='Cancel' /&gt;&amp;nbsp;";
        str += "&lt;/td&gt;&lt;/tr&gt;";
        str += "&lt;/table&gt;";
        document.getElementById("divOuter_" + issueId).innerHTML = str;
        $("#" + textId + "").focus();

    }
    // submit user reply and try to hide that reply area.  
    function btnReply_Clicked(issueId, textID) {

        var comment = document.getElementById(textID).value;
        if (comment != '') {
            $.getJSON("/Issue/SaveComment", { IssueId: issueId, Comment: comment }, null);

            $("#text_" + issueId + count).hide();
            $("#btnReply_" + issueId + count).hide();
            $("#btnCancel_" + issueId + count).hide();
            document.getElementById(textID).value = '';
            count = count + 1;
        }
    }

    // cancel user reply and try to hide that reply area.  
    function btnCancel_Clicked(issueId, textId) {

        $("#text_" + issueId + count).hide();
        $("#btnReply_" + issueId + count).hide();
        $("#btnCancel_" + issueId + count).hide();
        document.getElementById(textId).value = '';
        count = count + 1;
    } 
</code></pre>
