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
```
    var ul = document.getElementById("myul");
    var liNodes = [];

    for (var i = 0; i < ul.childNodes.length; i++) {
        if (ul.childNodes[i].nodeName == "LI") {
            liNodes.push(ul.childNodes[i]);
        }
    }

totalLis = liNodes.length;

```

Adding text to your ul tag

```
var txt = document.createTextNode("gsdgds");
ul.appendChild(txt); 

```

Adding li tag to your ul tag

```
var txt = "<li>dsgdsgs</li>";
ul.innerHTML(txt);

```