Why doesn't this jquery selector with a period work

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

I have a div with an ID

this jquery selector works

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


        
9条回答
  •  星月不相逢
    2020-12-06 05:41

    Because of the dot in the id attribute which in jQuery syntax represents class selector. This selector is equivalent to selecting node as:

提交回复
热议问题