Check out the HTML code I wrote:
<html>
<head>
</head>
<body>
<input class="search" placeholder="Search" />
<div id="users">
<ul class="list">
</div>
<script src="jquery-1.10.1.min.js" ></script>
<script src="list.min.js"></script>
<script src="code.js"></script>
</body>
</html>
Here's my JavaScript code:
var test = [{name:"Joo",born:1986,source:"impat.png"},
{name:"Jonas",born:1888,source:"impat.png"}];
var options = {
item: "<li><img src='source'/><h3 class='name'></h3><p class='born'></p></li>"
}
var listObj = new List('users', options,test);
Although I know it's not working as expected, I'm hopeful for a good solution from someone.