<!DOCTYPE html>
<html>
  <head>
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
    <link href="https://nightly.datatables.net/css/dataTables.dataTables.css" rel="stylesheet" type="text/css" />
    <script src="https://nightly.datatables.net/js/dataTables.js"></script>
    <meta charset=utf-8 />
    <title>DataTables - JS Bin</title>
  </head>
  <body>
    <div class="container">
      <table id="example" class="display nowrap" width="100%">
        <thead>
          <tr>
            <th>Name</th>
            <th>Position</th>
            <th>Office</th>
            <th>Xml</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Tiger Nixon</td>
            <td>System Architect</td>
            <td>Edinburgh</td>
            <td>
              <textarea>
<style type="text/css">email
            * {font-family:Verdana; font-size:11px;}
            table {border:1px solid #888888;width: 100%;table-layout: auto;margin:0;}
            td, th {border:1px solid #888888; padding:2px 7px 2px 7px;} 
         
            .err {background-color:#ffcccc;}
            .errhead {background-color:#ccffcc;}
            .disk {background-color:#fff0aa;}
            .nonDel {background-color:#ff0000;}
            </style>
              </textarea>
            </td>
          </tr>
         
         
          
        </tbody>
      </table>
    </div>
  </body>
</html>
 
body {
  font: 90%/1.45em "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}
 
let editorOptions = {
    table: '#example',
    formOptions: {
      inline: {
         submit: 'changed',
         onBlur: 'none',
      }
    },
    fields:
    [
       {
         "label":"Name",
         "name":"Name",
       },
       {
         "label":"Position",
         "name":"Position",
       },
       {
         "label":"Office",
         "name":"Office",
       },
       {
          "label":"xml",
          "name":"xml",
          "nullDefault":true,
          "type":"textarea"
       }
    ],
};
// let editor = new Editor(editorOptions);
var table = new DataTable('#example');
1 warning
Line 2: 'let' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz).
Output 300px

This bin was created anonymously and its free preview time has expired. Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers