samedi 29 août 2015

create table in html with Variable rows and its cells get data from user in view of laravel-5

<table class="table table-bordered table-condensed" id="stepTable">
  <thead>
    <tr>
      <td>step</td>
      <td>payment</td>
      <td>date</td>
    </tr>
  </thead>
  <tbody>
    <tr>
       <td>1</td>
       <td><input type="number" class="form-control" name="inPayment1" /></td>
       <td><input type="date" class="form-control" name="inDate1" /></td>
    </tr>
    <tr>
       <td>2</td>
       <td><input type="number" class="form-control" name="inPayment2" /></td>
       <td><input type="date" class="form-control" name="inDate2" /></td>
    </tr>
    <tr>
       <td>3</td>
       <td><input type="number" class="form-control" name="inPayment3" /></td>
       <td><input type="date" class="form-control" name="inDate3" /></td>
    </tr>
  </tbody>
</table>

I want a table like this with specified head row . also i want have a button that inserts new row the first column is automatically numbered and tow others get data from user. I write code handy what is the automatically way?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1WZ0UKE
via IFTTT

Aucun commentaire:

Enregistrer un commentaire