how to get value of li tag which is in ul tag using getElementById

In this code I am getting in alert 0 insteadof ‘abc’

            <li>First Node</li>
    <li id="repoFolder" value="abc">Lazy Node</li>

        <button onclick="rootFolder()">Click Me</button>

        function rootFolder(){



Source: javascript

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.