I am looking to create a formatted list using <ol>
and <ul>
tags with parentheses included.
(1) List1
(2) List2
(3) List3
(4) List4
The challenge is to achieve this formatting purely with javascript or jQuery, without relying on any external or internal CSS styles.
Below is the snippet of code I have been working on:
$("ol").css("counter-reset", "list");
$("ol li").css("list-style", "none");
$("ol li:before").css({"content": "counter(list, lower-alpha) ') '", "counter-increment": "list"});