Bummer! You must be logged in to access this page.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

JavaScript course

Hello, was lookin at the javascript courses and no javascript courses explain how to access html elements with getElementById and so on.

The javascript courses explains loops arrays and object, but not all the other things.

I understand that the jQuery courses show how to access elements by their Class names and such.

but is their any course on how to to that using javascript only, without a library?

Kind Regards.

Erdrag

3 Answers

Hi! You may want to look at the 'Interactive Web Pages with JavaScript' course, and then under the 'Selecting Elements and Adding Events with JavaScript' section of the course. I am currently reviewing that course now as I plan to use it for learning how to access html elements. Hope this helps! :-)

Okey thanks, ill look into that one, because i want to learning how to select elements with pure javascript then move on to jQuery to get a full understand whats happening, and its probably good to know how to access elements using javascript only

Kind regards

Erdrag

Hey Erdrag,

I agree. I felt that using jQuery without really know JS properly was a bit of a reliance rather than a creative choice and so got into learning the 'proper' way and then later jquery made my life a little easier for some things.

All the best :)

Yea, one thing. At the "Interactive Web Pages With JavaScript" it says that i should do jQuery basics first, why is that?

Hey Erdrag,

I think because jQuery is a bit more user-friendly with regards to syntax. It kind of eases you into the concepts such as targeting and then manipulating html and css. $() is a lot easier than getElementByID etc.

Essentially though its important to realise that jQuery is a library and can be used for many things and is particularly good when it comes to compatibility with older browsers and it takes care of a lot of that for you. But I think its best to learn the core first and then make your life easier later.

:)