Jump to content
  • 0

фильтрация с плагином datatables


olejan
 Share

Question

Не работает фильтрация с плагином datatables .

<link href="catalog/view/javascript/datatables/jquery.dataTables.css" rel="stylesheet"><script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.7.1.min.js"></script><script type="text/javascript" src="catalog/view/javascript/datatables/jquery.dataTables.min.js"></script><style type="text/css">#table_data{    border: 1px solid #cccccc;       }    TH, TD {    border: 1px solid #cccccc;    text-align: center;  }</style><table id="table_data">	<thead>		<tr class="gradeA">			<th>Название файла</th>			<th>Размер файла</th>			<th>Тип материала</th>			<th>Описание</th>		</tr>	</thead>	<tbody>		<tr class="gradeA">			<td><a href="filesRobolatory/cc_10.png">cc_10.png</a></td>			<td>1,62 Кб</td>			<td>Изображение 1</td>			<td>Изображение о чем-то</td>		</tr>		<tr>			<td><a href="filesRobolatory/gg_03.png">gg_03.png</a></td>			<td>1,73 Кб</td>			<td>Изображение 2</td>			<td>Изображение ни о чем</td>		</tr>	</tbody></table><script type="text/javascript">      $(document).ready(function(){     $("#table_data").dataTable()		  .columnFilter({			aoColumns: [ { type: "select", values: [ 'cc_10.png', 'gg_03.png']  },				    				]		});}); </script>
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy