JavaScript function which takes multiple ids and returns multiple elements

This tutorial shows how to implement a javascript function which takes multiple ids and returns multiple elements document.getElementById() only supports one name at a time and only returns a single node not an array of nodes. You have several different options: You could implement your own function that takes multiple ids and returns multiple elements. […]

Read More