Posted By

jatkins on 02/24/08


Tagged

javascript DOM getElementById


Versions (?)

get() function for easy DOM access


 / Published in: JavaScript
 

Saves you calling document.getElementById() every time to want to access an element.

  1. function get(elmnt) { return document.getElementById(elmnt); }

Report this snippet  

You need to login to post a comment.