check list of items is null or not by get element by id javascript code example Example: getelementbyid document.getElementById("someid");