jQuery alert onclick on element's child?

前端 未结 7 1943
粉色の甜心
粉色の甜心 2020-12-29 09:10

I\'m using this code to display an alert on a certain element:

$(\"#resultsBox\").click(function (event) {
    console.log(\'a\');
    });

7条回答
提交回复
热议问题