Why doesn't this jquery selector with a period work

后端 未结 9 2019
长发绾君心
长发绾君心 2020-12-06 04:56

I have a div with an ID

this jquery selector works

$(\"[id^=\'updates-pane         


        
9条回答
  •  悲哀的现实
    2020-12-06 05:22

    Because . selector considers that there is a class with the following name

    $("#updates-pane-user.followed_on")
    

    means : find all elements with id = updates-pane-user which have class name followed_on

提交回复
热议问题