开发者

how to create list using jquery

how to create an unordered list using jquery which should contain images as items and behind the images link should be given to a specific function

i.e onClick on the list item it should call ce开发者_StackOverflowrtain function


If you must add using jquery:

$('body').append('<ul id="test" />');
$('#test').append('<li>'+data+'</li>')

$('ul li').click(function(){
    //onclick event
})
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜