Nothing
Nothing

Reputation: 2642

Create List in Jquery

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

Answers (2)

thenetimp
thenetimp

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

Related Questions