Why doesn't this jquery selector with a period work

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

I have a div with an ID

this jquery selector works

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


        
9条回答
  •  情书的邮戳
    2020-12-06 05:17

    $("#updates-pane-user\\.followed_on") - This Should work as per the Jquery documentation

    // Does not work
     $("#some:id")
    
     // Works!
     $("#some\\:id")
    
     // Does not work
     $("#some.id")
    
     // Works!
     $("#some\\.id")
    

提交回复
热议问题