Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Knowing your framework code
// Selecting an element by its ID
// jQuery
var myElement = $('#myElement');
// Without jQuery
var myElement = document.getElementyById('myElement');
// In the jQuery source code, the logic for selecting elements is actually far more complex.
// Worth looking at if you want to challenge yourself.
// There is no faster way to become a better programmer than reading (and understanding)
// the source code of frameworks that have solved problems more complex than most programmers
// are willing to tackle on their own.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.