开发者

jQuery: selector question (dash)

开发者 https://www.devze.com 2023-03-05 13:12 出处:网络
i\'m trying to select objects which are having a dash in their classname - like $(\"div.na开发者_Python百科v-next\");

i'm trying to select objects which are having a dash in their classname - like $("div.na开发者_Python百科v-next");

it doesnt work - seems like the dash is the problems - any ideas? thanks


Try this. Get rid of the "div" portion.

$('.nav-next')
0

精彩评论

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