listjs


sortable list in list.js doesn't seem to be working


I copied the example from http://listjs.com/examples/table/ of a sortable table, but it's not working. Can anyone tell me what I'm doing wrong please?
I have these links in my <head>:
<link rel="stylesheet" href="/includes/material-design-lite/material.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
html:
<div id="users">
<input class="search" placeholder="Search" />
<button class="sort" data-sort="name">
Sort by name
</button>
<table>
<!-- IMPORTANT, class="list" have to be at tbody -->
<tbody class="list">
<tr>
<td class="name">Jonny Stromberg</td>
<td class="born">1986</td>
</tr>
<tr>
<td class="name">Jonas Arnklint</td>
<td class="born">1985</td>
</tr>
<tr>
<td class="name">Martina Elm</td>
<td class="born">1986</td>
</tr>
<tr>
<td class="name">Gustaf Lindqvist</td>
<td class="born">1983</td>
</tr>
</tbody>
</table>
</div>
<script src="//listjs.com/assets/javascripts/list.min.js"></script>
<script src="/includes/material-design-lite/material.min.js"></script>
js:
<script type="javascript">
var options = {
valueNames: [ 'name', 'born' ]
};
var userList = new List('users', options);
</script>
Use the absolute URL when linking list.js:
<script src="http://www.listjs.com/assets/javascripts/list.min.js"></script>

Related Links

sortable list in list.js doesn't seem to be working
Listjs Turn Off Search Filter For Title Attribute in Table
How to save state pagination with list.js after refresh?

Categories

HOME
elasticsearch
visual-studio
apache-nifi
svn
focus
adfs3.0
couchdb
concurrency
docker-cloud
yql
mathematical-optimization
moodle-api
dji-sdk
stored-procedures
angular-meteor
kurento
anchor
fireloop
cqrs
parsley.js
fbloginview
rangy
feature-extraction
google-awareness
spring-jpa
django-rq
scala-ide
pickle
string-formatting
error-logging
el
mod-wsgi
android-cardview
history.js
adapter
monitor
matlab-app-designer
mongodb-3.4
plantuml
advanced-filter
spring-rabbitmq
express-session
transform
wdk
ms-solver-foundation
aurelia-cli
praat
python-jira
vb.net-to-c#
jshint
docker-ucp
destroy
dredd
rm
photoswipe
winston
extjs4.1
android-sharing
deedle
clrs
1010
fitbit
pjax
e
visual-studio-monaco
zynq
django-testing
coovachilli
android-sdcard
perforce-integrate
unsigned
node-glob
utf-16
wif4.5
webgrind
enunciate
juniper-network-connect
google-maps-api-2
cfwheels
mixins
gluon-desktop
featuretoggle
compositetype
phpredis
dbmigrate
erlog
hp-idol-ondemand
ildasm
producer
webautomation
rails-api
meteor-collections
radius-protocol
principalcontext
yii-booster
virtual-channel
pacman
unicoins
arel
chefspec
handshake
nsmutablestring
live-wallpaper
clearinterval
sfinae
struts2-s2hibernate
mvcrecaptcha
space-partitioning
resharper-5.1
wmd-editor
server-load
regioninfo
rendering-engine
bindable-linq

Resources

Encrypt Message