Hi,
I am trying to learn some JS for a project I'm working on and I have a couple of questions-
getElementById
In the css, If I use .font for example to style a P tag then the getelement by ID works fine however when I use #divone the getelementbyid doesn't work is there a reason for this - also:
do you need to do:
<div class="name" id="divone">
for the getelementbyid to work because I was under the impression the ID was the name of the css (for example .font) the id is font?
Thanks!





Reply With Quote




