Welcome Guest, Not a member yet? Register   Sign In
what name spacing to use for div id's and classes?
#14

[eluser]LuckyFella73[/eluser]
Aken posted:
Quote:This is backwards. Javascript prefers underscores.

The most widely accepted, unofficial standard is to use underscores in IDs, and hyphens in class names.

http://stackoverflow.com/questions/16968...underlines

Beyond that, the naming conventions are your own personal preference.

Isn't that clear? I prefer to name my classes and ids the same way and
never had a problem using javascript yet (caused by "-" or "_").


Messages In This Thread
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 03:32 PM
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 04:05 PM
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 04:51 PM
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 11:40 PM
what name spacing to use for div id's and classes? - by El Forum - 06-23-2012, 11:41 PM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 01:57 AM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 01:59 AM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 05:34 AM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 01:40 PM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 02:04 PM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 02:08 PM
what name spacing to use for div id's and classes? - by El Forum - 06-24-2012, 04:48 PM
what name spacing to use for div id's and classes? - by El Forum - 06-25-2012, 01:01 AM
what name spacing to use for div id's and classes? - by El Forum - 06-25-2012, 01:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB