What is this?:
document.getElementById("+id+")
I have seen this used several times in code on other sites, and I was wondering what it’s specific use was and if there is an alternate to using this code.
— Edit —
Here is an example of one of the sites I recently saw it on.
Ok, everyone seems to have missed the fact that those are 2 single quotes and not a single double quote 🙂
This is equivalent to the below except it seems to be doing string concatenation before the value is passed.