Skip to content

Instantly share code, notes, and snippets.

View maxemitter's full-sized avatar

Maximilian Mitterrutzner maxemitter

View GitHub Profile
@mwalters
mwalters / jquery-crash-course.md
Last active May 30, 2024 08:26
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