Skip to content

Instantly share code, notes, and snippets.

@niyaziberber
niyaziberber / jquery-crash-course.md
Created December 28, 2017 14:36 — forked from mwalters/jquery-crash-course.md
A friend needed a crash course in jQuery basics. I thought it might be helpful to capture it. Feel free to suggest corrections / modifications / additions.

Ok, crash course in jQuery and stuff:

Accessing jQuery

jQuery makes a global object, typically referenced by "$". There's also something called no-conflict mode where you'd reference it by "jQuery", but you won't see that too often in what we're doing, but just in case you encounter it, essentially these are the same:

$('.article')
jQuery('.article')

Element Selection