Question: I am facing splash screen problem for iPhone 5. Splash screen looks proper first time then suddenly it displays a smaller splash image which was a bug in cordova library. So, i want to upgrade my Cordova version.Can i directly switch to 2.9.0 from 1.9.0 because i am unable to download 2.0.0 version ? I am getting network error after 90% download while network is working properly.

Answer: 
```
   var liList = document.getElementById("myul").getElementsByTagName("li");

   var largo = liList.length

   alert(largo);

```

WHERE "**myul**" is the id of the list and **largo** is number of li items

```
<ul id="myul">
    <li>hello</li>
    <li>world</li>
</ul>

```

the alert would be 2

```
<ul id="myul">
    <li>hello</li>
    <li>world
        <ul>
            <li>here we are</li>
        <ul>
    </li>
</ul>

```

the alert would be 3
```
<!DOCTYPE html>
<html>
<body onload="myFunction()">

<p>Maybe this answer can help. I improvise for this after a few days of testing. This is what I got. Hope it helps you.</p>

<li class="sidenav-item open active">
            <a href="#" class="sidenav-link sidenav-toggle" ></i>
              <div class="text-white">Hi, There!
                <div class="badge badge-primary" id="ul-me"></div></div>
            </a>

            <ul class="sidenav-menu" id="ul1">
              <li class="sidenav-item active">
                <a href="#" class="sidenav-link" >
                  <div class="text-white" >Home</div>
                </a>
              </li>
              <li class="sidenav-item" id="ul2">
                <a href="#" class="sidenav-link" >
                  <div class="text-white" >Blog</div>
                </a>
              </li>
              <li class="sidenav-item" id="ul3">
                <a href="#" class="sidenav-link" >
                  <div class="text-white" >Downloads</div>
                </a>
              </li>
              <li class="sidenav-item" id="ul4">
                <a href="#" class="sidenav-link" >
                  <div class="text-white" >Contact</div>
                </a>
              </li>
              <li class="sidenav-item" id="ul5">
                <a href="#" class="sidenav-link" >
                  <div class="text-white" >About</div>
                </a>
              </li>
            </ul>
</li>
'''
<!-- Count Item (li) in <ul> -->

<script>
function myFunction() {
  var mylist = [document.getElementById("ul1"), ("ul2"), ("ul3"), ("ul4"), ("ul5")];
  document.getElementById("ul-me").innerHTML = mylist.length;
}
</script>

</body>
</html>

```