开发者

jquery - remove last div in a group

How can I remove the very last DIV identified by id begining with letters "section" (eg: "section99") in a DIV identified by id="groupA"

currentTab = "A";

$('#subPart').click(function() { 
    name = "#group" + currentTab;   
        ....

    $(something开发者_JAVA百科).remove();              
    return false;
        });   


Try This script

   $('#groupA').find('div[id^="section"]:last').remove();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜