Is it always bad practice to start an ID with a number? (CSS)

后端 未结 5 2034
暗喜
暗喜 2020-12-20 15:54

In my project I have submissions and comments, each with an ID. Currently the ID\'s are just numeric and correspond to their database ID\'s. Everything is working fine but w

5条回答
  •  情深已故
    2020-12-20 16:42

    If you're manipulating the element then you can just use $(this).jQueryOperation() - therefore you can have a prefix without having to replace anything!

提交回复
热议问题