Joined April 2013
·

Carlitos

Caracas - Venezuela
·
·
·

This is not a javascript thing, this is a browser thing. Some/most browsers assign DOM elements to variables they create and name with the elements' IDs.

This is a good tool for quick debugging from the dev tools console but it shouldn't be used in JS code.

You can also get the jQuery object by doing $(rampus) instead of $('#rampus')

Achievements
97 Karma
519 Total ProTip Views