title: How to use jQuery to insert html form data into html table?
body: <p>I created simple html Employee.html that consist of table and form in same page.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>input[type=text],
  select {
    width: 50%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .split {
    height: 100%;
    width: 50%;
    position: fixed;
    z-index: 1;
    top: 0;
    overflow-x: hidden;
    padding-top: 20px;
  }
  
  .left {
    left: 0;
    background-color: #b8c6dd;
  }
  
  .right {
    right: 0;
    background-color: #dce0d9;
  }
  
  table {
    font-family: Arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
  }
  
  td,
  th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
  }
  
  tr:nth-child(even) {
    background-color: #dddddd;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="split left"&gt;
    &lt;center&gt;
      &lt;h2&gt;Employee Task Record&lt;/h2&gt;
    &lt;/center&gt;
  
    &lt;table&gt;
      &lt;tr&gt;
        &lt;th&gt;S.N&lt;/th&gt;
        &lt;th&gt;Task&lt;/th&gt;
        &lt;th&gt;Description&lt;/th&gt;
        &lt;th&gt;Complete&lt;/th&gt;
        &lt;th&gt;Type&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  &lt;div class="split right"&gt;
    &lt;center&gt;
      &lt;form id="first_form" method="post" action=""&gt;
        Given Task : &lt;input type="text" id="first_name" name="task" value=""&gt;
        &lt;br&gt;&lt;br&gt; Description: &lt;input type="text" name="description" value=""&gt;&lt;br&gt;
        &lt;br&gt; Complete: &lt;input type="radio" name="taskDone" value="yes" checked&gt; Yes
        &lt;input type="radio" name="taskDone" value="no"&gt; No&lt;br&gt; &lt;br&gt; Task Type:
        &lt;select&gt;
          &lt;option value="regular"&gt;Regular&lt;/option&gt;
          &lt;option value="Meeting"&gt;Meeting&lt;/option&gt;
          &lt;option value="coding"&gt;Coding&lt;/option&gt;
          &lt;option value="documentation"&gt;Documentation&lt;/option&gt;
          &lt;option value="support"&gt;Support&lt;/option&gt;
        &lt;/select&gt; &lt;br&gt; &lt;br&gt;
        &lt;input type="submit" onclick="" value="submit" button class="button"&gt;
      &lt;/form&gt;
    &lt;/center&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Layout of form is below.
  <a href="https://i.stack.imgur.com/t9aw7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t9aw7.png" alt="enter image description here"></a></p>
  
  <p>Now I want to input values in form,when i click submit button,I want them to display in left table by using jQuery like this.I have new to jQuery and used basic commands of jQuery Selectors like $("*"),$("p.intro") etc.
  <a href="https://i.stack.imgur.com/JgDwM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JgDwM.png" alt="enter image description here"></a></p>