title: Two buttons display same div. One button has more visibility of options
body: <p>I have two <code>&lt;input type=Button&gt;</code>. When clicked, both will load one dialogue box contained inside a div.</p>
  
  <p>I want to add a separate button and text into the div which is only viewable when the second button is clicked.  Instead of rewriting this one for btn one and one for btn two.  How can I make the extra text and button only available if the 2nd btn is clicked?</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div id="LabourOrPlantDialog" title="Comments" style="display:none;"&gt;
     &lt;table class="table"&gt;
        &lt;tr&gt;
           &lt;th&gt;Item&lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
           &lt;td id="Item"&gt;&lt;/td&gt;
        &lt;/tr&gt;
     &lt;/table&gt;
     &lt;br /&gt;
     &lt;textarea id="ExistingComments" type="text" runat="server" rows="7" cols="30" maxlength="2000"&gt;&lt;/textarea&gt;
     &lt;input id="SubmitComment" type="button" value="Submit" onclick="SubmitButton()" /&gt;
  
     &lt;!-- BELOW IS THE TEXT AND BTN I ONLY WANT AVAILABLE WHEN 2ND BTN IS CLICKED --&gt;
  
     &lt;input type="text" name="BoqTextBox" /&gt;
     &lt;input type="AddValueButton" value="+" onclick="Add(BoqTextBox)" /&gt;                          
  &lt;/div&gt;
  </code></pre>
  
  <p>Some sort of bool im guessing? Have never done this before...any help would be great. Thanks</p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <pre><code>&lt;input id="SubmitCommentsForOne" type="button" value="Comments" onclick="ShowComment('&lt;%: item.ItemCode %&gt;')" /&gt;
  
  &lt;input id="SubmitCommentsForTwo" type="button" value="Comments" onclick="ShowComment('&lt;%: item.Number %&gt;')" /&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>var Code
  function ShowCommentBoxForBOQ(Number) {
     Code = Number;
     Work.DisplayBoxForBOQ(Number);
     $("#LabourOrPlantDialog").dialog({ modal: true });
  }
  </code></pre>
  
  <p><code>LabourOrPlantDialog</code> loads the div.</p>
  
  <hr>
  
  <p>EDIT: Can I give anything else which would help? Does anyone have any idea a tall?  Thank you for any replies</p>