Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  
  
<link href="https://cdn.datatables.net/1.10.11/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />
   
<link href="https://rawgit.com/vedmack/yadcf/master/jquery.dataTables.yadcf.css" rel="stylesheet" type="text/css" />
  
  <link href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
  
<script type="text/javascript" charset="utf8" src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
  
  <script type="text/javascript" charset="utf8" src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  
  <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.11/js/jquery.dataTables.min.js"></script>
  
<script type="text/javascript" charset="utf8" src="https://dl.dropboxusercontent.com/u/55621125/yadcf/war14/resources/js/jquery.dataTables.yadcf.js"></script>
<meta charset=utf-8 />
<title>yadcf - Yet Another DataTables Column Filter</title>
</head>
 <body id="yadcf_example">
    <div id="container">
     
 <button id="addRow">Add row</button> 
      <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
        <thead>
          <tr>
            <th>Some Data</th>
            <th>More Data</th>
            <th>Number </th>
            <th>Values</th>
          </tr>
        </thead>
        <tbody>
          <tr class="odd gradeX">
            <td>Some Data 1</td>
            <td>More Data 11</td>
            <td>2</td>
            <td>a_value,b_value</td>
          </tr>
          <tr class="even gradeC">
            <td>Some Data 2</td>
            <td>More Data 22</td>
            <td>2</td>
            <td>b_value,c_value</td>
          </tr>
          <tr class="odd gradeA">
            <td>Some Data 3</td>
            <td>More Data 33</td>
            <td>4</td>
            <td>a_value</td>
          </tr>
          
        </tbody>
      </table>
    </div>
  </body>
</html>
 
var oTable;
$(document).ready(function(){
oTable = $('#example').DataTable();
yadcf.init(oTable,[
  {column_number : 1, filter_type : "select"},
  {column_number : 2, filter_type : "range_number_slider"}]); 
  
});
$('#addRow').on( 'click', function () {
        oTable.row.add( [
            'Some Data 1',
            'More Data 44',
            77,
            'a_value'
        ] ).draw( false );
     } );
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers