Having trouble getting list.js to work

295 views Asked by At

So I am new to using JS and I have looked over the list.js site and can't seem to figure this out. I can't even get the demo to run on my server. I can get my code to work on web based places like Encode and what not, but not my server.

http://brewingbard.biz/smm/test/main-list2.html

Can someone please tell me why this is failing? I copy stuff that works in one place and put it up here and then it stops.

2

There are 2 answers

0
SLaks On BEST ANSWER

Your code is running before the <div id="users"> exists.
Therefore, it has nothing to operate on.

Move the invoking script block below the element.

5
SLaks On
<script src="list.js" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>

Each <script> tag can only have one src.

You need to load each script in its own element.