i want know how i can retrieve the content of an HTML inner tag value for a specific ID, for example:

```
<span id="mycount" value="100">1</span>

```

i want retrieve the 100 value, i have tried this:

```
var num = document.getElementById('mycount').value;

```

i have also tried this:

```
var anchors = document.getElementById('mycount');
var num = anchors.value();

```

but doesn't work, how i can do it?