Reputation: 2642
I used to create List in APS.net :
<% List<Item> list = new List<Item>(); %>
I want to create in jquery like this. How can I do that? Anyone have any idea? Thanks.
Upvotes: 0
Views: 210
Reputation: 649
some of possible solutions for you: http://www.coffeeblack.org/work/jscollections/ http://plugins.jquery.com/project/Collection
similar discussion: JavaScript Collections API?
Upvotes: 1
Reputation: 9820
This is how you create a basic unordered list.
jQuery(document).ready(function(){
list = jQuery('<ul>');
listItem = jQuery('<li>new item</li>');
list.append(listItem);
});
Upvotes: 2