Prototype function $


/ Published in: JavaScript
Save to your folder(s)

instead of document.getElementById('a');, you’d simply just do this instead:

$('a');.

And if you wanted a whole collection of elements, you can simply do this:

$('a','b',obj,obj2,'c','d');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.