user2423609 user2423609 - 2 months ago 15
Javascript Question

How to build string with Bullet format

I am trying to display string as


. string1
. string2
. string3



By using Append function of Jquery how to build string with bullet format.

Answer
<ul style="list-style-type: normal;" id="list"></ul>

<script>
    $('#list').append('<li>string1</li>');
</script>