I am making a simple web application. In one part of it I:
<ul class="sortable list-group">
<li id="firstTag" class="tags list-group-item">
<span id="present-count" class="badge"></span>
</li>
I need to access the li element with id = "firstTag" and the span element with id = "present-count".
Anyway, I can access only one thing, if I remove id = "firstTag", I can easily cover the range, anyway, in the presence of its js it gives an error: "it is impossible to set the property" innerHTML "null" for the operator:
document.getElementById("present-count").innerHTML = something;
EDIT:
Both are called in the window.onload function with "firstTag" called before "present-count". See this script: http://jsfiddle.net/poddarrishabh/2xzX6/3/
This is what I want the result to look like this:

"Present", ( bootstrap).