In my project, I have materials and comments, each with an identifier. Currently, identifiers are only numeric and correspond to their database identifiers. Everything works fine, but when I run it through the W3 validator, I get an error:
value of attribute "id" invalid: "1" cannot start a name
I suppose that instead I could just precede all identifiers with some string, but then whenever I used or manipulated the identifier in jQuery or PHP, I have to do id.replace ('string', '') before using It. This seems rather cumbersome. Any tips?
jquery html css php
John smith
source share