jquery selector selector for class not working(bootpeg)

This question already has an answer here:

  • How can I select an element with multiple classes in jQuery? 10 answers

  • The space means the second part is inside the first one (it's called the descendant combinator). Remove it:

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

    You don't need to put that extra space in between selector. space in selector looks for descendant elements:

    $(".textgray.showing").html("some text");
    
    链接地址: http://www.djcxy.com/p/83100.html

    上一篇: jQuery选择输入与多个类

    下一篇: 类不工作的jquery选择器选择(bootpeg)