title: Hide Table Row with Javascript
body: <p>I have very little experience with programming, but have been requested to hide a row of a table on a customer site using only Javascript. I know how to do this with both HTML or CSS, but have been told I cannot access those elements in the 3rd party platform we are using and must create a script for it.</p>
  
  <p>I have the html entered at <a href="http://jsfiddle.net/zcho5zs5/" rel="nofollow noreferrer">http://jsfiddle.net/zcho5zs5/</a> and could use any help to get the entire second row to be hidden. All that should be displayed is "Select Payment Method" and "Pay by Saved Card" with the dropdown. Everything below that needs to be hidden.</p>
  
  <p>HTML Code</p>
  
  <pre><code>&lt;div id="t1_t2_c_p_pnlPaymentMethod"&gt;
  
  &lt;span id="t1_t2_c_p_lblPaymentMethod" style="font-weight:bold;"&gt;Select a Payment Method:&lt;/span&gt;
  &lt;table cellspacing="0" cellpadding="4" width="500" border="0" id="tblPaymentOptions"&gt;
  
  
  
  
          &lt;tbody&gt;&lt;tr id="t1_t2_c_p_rowSavedCC"&gt;
          &lt;td valign="top"&gt;&lt;input id="t1_t2_c_p_rdoSavedCreditCard" type="radio" name="t1:t2:c:p:PaymentMethod" value="rdoSavedCreditCard" checked="checked"&gt;&lt;/td&gt;
          &lt;td&gt;
                  &lt;table cellpadding="0" cellspacing="0" border="0"&gt;
                      &lt;tbody&gt;&lt;tr&gt;
                          &lt;td align="right"&gt;&lt;span id="t1_t2_c_p_lblSavedCreditCard"&gt;Pay by Saved Card:&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;&lt;select name="t1:t2:c:p:ddlSavedCCList" id="t1_t2_c_p_ddlSavedCCList" onchange="$p.rdoSavedCreditCard.checked = true;"&gt;
              &lt;option selected="selected" value="o-s1J0eNVIcq4H1oad1hwvro3BLo-s0vwMUr7g-pPe7tsToQhzbVQ5W4A-e-e"&gt;P-Card 4375&lt;/option&gt;
  
          &lt;/select&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;&lt;a id="t1_t2_c_p_btnDeleteSavedCC" class="LinkButton" href="javascript:__doPostBack('t1$t2$c$p$btnDeleteSavedCC','')" style="display: none;"&gt;Delete&lt;/a&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tbody&gt;&lt;/table&gt;
              &lt;/td&gt;
      &lt;/tr&gt;
  
          &lt;tr id="t1_t2_c_p_rowCreditCard"&gt;
          &lt;td valign="top"&gt;&lt;input id="t1_t2_c_p_rdoCreditCard" type="radio" name="t1:t2:c:p:PaymentMethod" value="rdoCreditCard"&gt;&lt;/td&gt;
          &lt;td&gt;
                  &lt;table cellspacing="0" cellpadding="0" border="0"&gt;
                      &lt;tbody&gt;&lt;tr&gt;
                          &lt;td&gt;&lt;span id="t1_t2_c_p_lblCreditCard"&gt;Pay by Credit Card:&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;&lt;select name="t1:t2:c:p:ddlCCType" id="t1_t2_c_p_ddlCCType" onchange="$p.rdoCreditCard.checked = true;" style="width:100%;"&gt;
              &lt;option selected="selected" value="Visa"&gt;Visa&lt;/option&gt;
  
          &lt;/select&gt;&lt;/td&gt;
                      &lt;/tr&gt;&lt;tr&gt;
                          &lt;td&gt;Account Number:&amp;nbsp;&amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;&lt;input name="t1:t2:c:p:txbCCAccount" type="text" maxlength="20" id="t1_t2_c_p_txbCCAccount" autocomplete="off" onkeypress="$p.rdoCreditCard.checked = true;" style="width:150px;"&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;Expiration Date:&amp;nbsp;&amp;nbsp;&lt;/td&gt;
                          &lt;td&gt;
                              &lt;select name="t1:t2:c:p:ddlCCExpMonth" id="t1_t2_c_p_ddlCCExpMonth"&gt;
              &lt;option selected="selected" value=""&gt;&lt;/option&gt;
              &lt;option value="1"&gt;01&lt;/option&gt;
              &lt;option value="2"&gt;02&lt;/option&gt;
              &lt;option value="3"&gt;03&lt;/option&gt;
              &lt;option value="4"&gt;04&lt;/option&gt;
              &lt;option value="5"&gt;05&lt;/option&gt;
              &lt;option value="6"&gt;06&lt;/option&gt;
              &lt;option value="7"&gt;07&lt;/option&gt;
              &lt;option value="8"&gt;08&lt;/option&gt;
              &lt;option value="9"&gt;09&lt;/option&gt;
              &lt;option value="10"&gt;10&lt;/option&gt;
              &lt;option value="11"&gt;11&lt;/option&gt;
              &lt;option value="12"&gt;12&lt;/option&gt;
  
          &lt;/select&gt;
                              &lt;select name="t1:t2:c:p:ddlCCExpYear" id="t1_t2_c_p_ddlCCExpYear"&gt;
              &lt;option value=""&gt;&lt;/option&gt;
              &lt;option value="2014"&gt;2014&lt;/option&gt;
              &lt;option value="2015"&gt;2015&lt;/option&gt;
              &lt;option value="2016"&gt;2016&lt;/option&gt;
              &lt;option value="2017"&gt;2017&lt;/option&gt;
              &lt;option value="2018"&gt;2018&lt;/option&gt;
              &lt;option value="2019"&gt;2019&lt;/option&gt;
              &lt;option value="2020"&gt;2020&lt;/option&gt;
              &lt;option value="2021"&gt;2021&lt;/option&gt;
              &lt;option value="2022"&gt;2022&lt;/option&gt;
              &lt;option value="2023"&gt;2023&lt;/option&gt;
              &lt;option value="2024"&gt;2024&lt;/option&gt;
              &lt;option value="2025"&gt;2025&lt;/option&gt;
              &lt;option value="2026"&gt;2026&lt;/option&gt;
              &lt;option value="2027"&gt;2027&lt;/option&gt;
              &lt;option value="2028"&gt;2028&lt;/option&gt;
              &lt;option value="2029"&gt;2029&lt;/option&gt;
  
          &lt;/select&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
  
                      &lt;tr id="t1_t2_c_p_rowSaveCCQuestion"&gt;
              &lt;td&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input id="t1_t2_c_p_chkSaveCC" type="checkbox" name="t1:t2:c:p:chkSaveCC"&gt;&amp;nbsp;&amp;nbsp;Save my credit card information&lt;/td&gt;
          &lt;/tr&gt;
  
                  &lt;/tbody&gt;&lt;/table&gt;
              &lt;/td&gt;
      &lt;/tr&gt;
  
  
          &lt;/tbody&gt;&lt;/table&gt;&lt;br&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Javascript?</p>
  
  <p>I have tried several suggestions I have found on this site for similar functions, but nothing seems to work. </p>