Actually I am trying to append the content from js to html table.And also with it I am trying to add a button below the table to the extreme right of the page.But I am not able to align it.Please guide where am I going wrong.
HTML Code is:
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%
}
td,
th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 20px;
}
#table {
  margin-left: -900px;
}<!DOCTYPE html>
<html>
<head>
  <body>
    <div id="table" style="display:none">
      <div class="container text-center">
        <div class="row">
          <div class="col-sm-4"></div>
          <!--If I remove this line the table only will not be displayed-->
          <div class="col-sm-4">
            <div class="panel panel-primary">
              <div class="panel-heading">Reportees List</div>
              <table id="employee_table" class="table table-hover" cellspacing="0" width="100%">
                <tr>
                  <th>Number</th>
                  <th>Name</th>
                  <th>UserId</th>
                  <th>Count</th>
                </tr>
              </table>
            </div>
          </div>
          <div id="jiratable" style="display:none">
            <div class="container text-center">
              <div class="row">
                <div class="col-sm-4"></div>
                <div class="col-sm-4">
                  <div class="panel panel-primary" style="width: 240%;">
                    <div class="panel-heading">JIRA - List</div>
                    <table class="table table-hover">
                      <table id="Jira_table" class="table table-hover" cellspacing="0" style="width:240%;table-layout:fixed">
                        <thead>
                          <tr>
                            <th width="80">Number</th>
                            <th>JiraNumber</th>
                            <th>JiraStatus</th>
                            <th>EmailId</th>
                          </tr>
                        </thead>
                      </table>
                  </div>
                </div>
              </div>
            </div>
            <div class="container">
              <div style="text-align:right; width:100%; padding:0;">
                <button id="sendMail" class="btn btn-primary btn-lg pull-right" onclick="sendMail()">SendMail</button>
              </div>
            </div>
  </body>
</html>I don't know where I am going wrong.
Expected output is:
Number  id   name  count       Number    JiraNumber   Jirastatus    EmailId
1       AG   RAJ     0             1       TR-150     RS-Release    **@gmail
2       TG   Ram     3             1       TR-152     RS1-Release   **@gmail
                                   1       TR-153     RS2-Release   **@gmail
                                                         SendMail  Cancel
So I want the SendMail and cancel button to right.But the output is:
Number  id   name  count      Number   JiraNumber  Jirastatus     EmailId
1     AG   RAJ     0             1       TR-150    RS-Release     **@gmail
2     TG   Ram     3             1       TR-152    RS1-Release    **@gmail
                                 1       TR-153    RS2-Release    **@gmail
                                        SendMail  Cancel
 
     
     
    