用Jquery取出Span标签下面的id属性

2025-04-28 19:55:54
推荐回答(1个)
回答1:





Ball




$ (function ()
    {
    $ ("span").click (function ()
    {
    alert ($ (this).attr ("id"));
    })

    $ ("button").click (function ()
    {
    alert ($ (this).closest ("div.profile-info-row").find (".editable").attr ("id"));
    })
    });




联系电话


1111111111111 






相关问答
最新问答