Why doesn't this jquery selector with a period work

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

I have a div with an ID

this jquery selector works

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


        
9条回答
  •  爱一瞬间的悲伤
    2020-12-06 05:32

    You can also use the id attribute selector, like:

    $('[id="updates-pane-user.followed_on"]')
    

    because jQuery will treat the attribute as a string, rather than a jQuery class selector.

提交回复
热议问题