tartical07 Posted December 14, 2006 Share Posted December 14, 2006 What is the get-element-by-id? I knew it somewhere in the internet. Link to comment Share on other sites More sharing options...
Beta Posted December 14, 2006 Share Posted December 14, 2006 i see pulpfictions going to answer this one...so ill just add something :)Instead of using the full document.getElementById(id);, you can use shorthand functions or variables :)var getID = document.getElementById;orfunction getID(id) { return document.getElementById(id);}to use either, its:getID("id"); Link to comment Share on other sites More sharing options...
pulpfiction Posted December 14, 2006 Share Posted December 14, 2006 This might give some explanation....http://www.tizag.com/javascriptT/javascrip...elementbyid.php Link to comment Share on other sites More sharing options...
tartical07 Posted December 14, 2006 Author Share Posted December 14, 2006 This might give some explanation....http://www.tizag.com/javascriptT/javascrip...elementbyid.php Tyvms Link to comment Share on other sites More sharing options...
Sniffy Posted December 14, 2006 Share Posted December 14, 2006 http://www.w3schools.com/js/tryit.asp?file...ocument_getbyidIs an example.Also, there's something similar: getElementsByTagName(); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now