jquery class 的选择器选择器不起作用(bootpeg)

jquery selector selector for class not working(bootpeg)

我正在使用 jquery bootpag 在页面上显示分页

<div class="textgray showing"></div>

我应该如何告诉jQuery到select这个div?我没有尝试以下但这些尝试都不起作用

$(".textgray .showing").html("some text");

$(".textgray showing").html("some text");

P.S我是前端初学者,请多多包涵

space 表示第二部分在第一部分中(称为 descendant combinator)。删除它:

$(".textgray.showing").html("some text");

您不需要在选择器之间放置额外的 space。 space 在选择器中查找后代元素:

$(".textgray.showing").html("some text");